mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
feat(agnoster): add anaconda env information (#12434)
This commit is contained in:
@@ -227,6 +227,14 @@ prompt_virtualenv() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Conda Virtualenv
|
||||||
|
promp_conda_virtualenv() {
|
||||||
|
if [[ -n $CONDA_PROMPT_MODIFIER ]]; then
|
||||||
|
prompt_segment black default ${CONDA_PROMPT_MODIFIER:1:-2}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Status:
|
# Status:
|
||||||
# - was there an error
|
# - was there an error
|
||||||
# - am I root
|
# - am I root
|
||||||
@@ -266,6 +274,7 @@ build_prompt() {
|
|||||||
prompt_bzr
|
prompt_bzr
|
||||||
prompt_hg
|
prompt_hg
|
||||||
prompt_end
|
prompt_end
|
||||||
|
promp_conda_virtualenv
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='%{%f%b%k%}$(build_prompt) '
|
PROMPT='%{%f%b%k%}$(build_prompt) '
|
||||||
|
|||||||
Reference in New Issue
Block a user