diff options
author | Lion Krischer <krischer@geophysik.uni-muenchen.de> | 2016-07-15 18:02:46 +0300 |
---|---|---|
committer | Lion Krischer <krischer@geophysik.uni-muenchen.de> | 2016-08-31 01:08:01 +0300 |
commit | c382c538f0a74a5c551f741ced723ac39fdb3aa2 (patch) | |
tree | 5d11fe94345d67f12fbaab313e001cf4812b3e93 /powerlevel9k.zsh-theme | |
parent | 8a62fceb7b114d3121cd3d67c03a99e945eadcce (diff) |
Make the conda prompt fully configurable
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 57058a70..4aeb68a4 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -292,7 +292,13 @@ CURRENT_BG='NONE' # Anaconda Environment prompt_anaconda() { 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 } |