mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-06-20 09:38:05 +02:00
feat(agnoster): add conda support (#13160)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
95ef251669
commit
ac5295678f
@ -314,6 +314,9 @@ prompt_dir() {
|
||||
|
||||
# Virtualenv: current working virtualenv
|
||||
prompt_virtualenv() {
|
||||
if [ -n "$CONDA_DEFAULT_ENV" ]; then
|
||||
prompt_segment magenta $CURRENT_FG "🐍 $CONDA_DEFAULT_ENV"
|
||||
fi
|
||||
if [[ -n "$VIRTUAL_ENV" && -n "$VIRTUAL_ENV_DISABLE_PROMPT" ]]; then
|
||||
prompt_segment "$AGNOSTER_VENV_BG" "$AGNOSTER_VENV_FG" "(${VIRTUAL_ENV:t:gs/%/%%})"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user