mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-29 06:40:08 +00:00
Make the conda prompt fully configurable
This commit is contained in:
parent
8a62fceb7b
commit
c382c538f0
1 changed files with 7 additions and 1 deletions
|
@ -292,7 +292,13 @@ CURRENT_BG='NONE'
|
||||||
# Anaconda Environment
|
# Anaconda Environment
|
||||||
prompt_anaconda() {
|
prompt_anaconda() {
|
||||||
if ! [ -z ${CONDA_ENV_PATH+x} ]; then
|
if ! [ -z ${CONDA_ENV_PATH+x} ]; then
|
||||||
"$1_prompt_segment" "$0" "$2" "green" "black" "($(basename $CONDA_ENV_PATH))" ""
|
# config - can be overwritten in users' zshrc file.
|
||||||
|
defined POWERLEVEL9K_ANACONDA_BG_COLOR || POWERLEVEL9K_ANACONDA_BG_COLOR=green
|
||||||
|
defined POWERLEVEL9K_ANACONDA_FG_COLOR || POWERLEVEL9K_ANACONDA_FG_COLOR=black
|
||||||
|
defined POWERLEVEL9K_ANACONDA_PREFIX || POWERLEVEL9K_ANACONDA_PREFIX=""
|
||||||
|
defined POWERLEVEL9K_ANACONDA_LEFT_DELIMITER || POWERLEVEL9K_ANACONDA_LEFT_DELIMITER="("
|
||||||
|
defined POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER || POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER=")"
|
||||||
|
"$1_prompt_segment" "$0" "$2" "$POWERLEVEL9K_ANACONDA_BG_COLOR" "$POWERLEVEL9K_ANACONDA_FG_COLOR" "$POWERLEVEL9K_ANACONDA_PREFIX$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER$(basename $CONDA_ENV_PATH)$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER" ""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue