mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 15:34:50 +08:00
Compare commits
5 Commits
742cd4971e
...
1e8ff91688
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e8ff91688 | ||
|
|
ba7a5e68e6 | ||
|
|
a6465f839f | ||
|
|
2422635513 | ||
|
|
e501f8aace |
@ -322,6 +322,18 @@ prompt_virtualenv() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Anaconda: current working conda env
|
||||||
|
# To replace the conda modification of PS1 do `conda config --set changeps1 False`
|
||||||
|
# or add 'changeps1: False' to your .condarc file.
|
||||||
|
prompt_conda() {
|
||||||
|
local conda_env="$CONDA_DEFAULT_ENV"
|
||||||
|
if [[ -n $conda_env ]]; then
|
||||||
|
if [[ -z $CONDA_PROMPT_MODIFIER ]]; then
|
||||||
|
prompt_segment blue black "conda:$(basename $conda_env)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Status:
|
# Status:
|
||||||
# - was there an error
|
# - was there an error
|
||||||
# - am I root
|
# - am I root
|
||||||
@ -363,6 +375,7 @@ prompt_terraform() {
|
|||||||
build_prompt() {
|
build_prompt() {
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
prompt_status
|
prompt_status
|
||||||
|
prompt_conda
|
||||||
prompt_virtualenv
|
prompt_virtualenv
|
||||||
prompt_aws
|
prompt_aws
|
||||||
prompt_terraform
|
prompt_terraform
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user