summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLion Krischer <krischer@geophysik.uni-muenchen.de>2016-08-31 01:23:38 +0300
committerLion Krischer <krischer@geophysik.uni-muenchen.de>2016-08-31 01:23:38 +0300
commit35beead4308a164797fe4bd9026d860628064888 (patch)
tree16d6f786d80a8a0087d931110c056817db996181
parent50b978ddc8a8fd6f6372a66043526147eaba5046 (diff)
Using set_default function
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 93927f72..c956cac8 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -296,9 +296,9 @@ prompt_anaconda() {
_path=$CONDA_ENV_PATH$CONDA_PREFIX
if ! [ -z "$_path" ]; then
# config - can be overwritten in users' zshrc file.
- 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=")"
+ set_default POWERLEVEL9K_ANACONDA_PREFIX ""
+ set_default POWERLEVEL9K_ANACONDA_LEFT_DELIMITER "("
+ set_default POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER ")"
"$1_prompt_segment" "$0" "$2" "$3" "$4" "$POWERLEVEL9K_ANACONDA_PREFIX$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER$(basename $_path)$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER" ""
fi
}