mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
Using set_default function
This commit is contained in:
parent
50b978ddc8
commit
35beead430
1 changed files with 3 additions and 3 deletions
|
@ -296,9 +296,9 @@ prompt_anaconda() {
|
||||||
_path=$CONDA_ENV_PATH$CONDA_PREFIX
|
_path=$CONDA_ENV_PATH$CONDA_PREFIX
|
||||||
if ! [ -z "$_path" ]; then
|
if ! [ -z "$_path" ]; then
|
||||||
# config - can be overwritten in users' zshrc file.
|
# config - can be overwritten in users' zshrc file.
|
||||||
defined POWERLEVEL9K_ANACONDA_PREFIX || POWERLEVEL9K_ANACONDA_PREFIX=""
|
set_default POWERLEVEL9K_ANACONDA_PREFIX ""
|
||||||
defined POWERLEVEL9K_ANACONDA_LEFT_DELIMITER || POWERLEVEL9K_ANACONDA_LEFT_DELIMITER="("
|
set_default POWERLEVEL9K_ANACONDA_LEFT_DELIMITER "("
|
||||||
defined POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER || POWERLEVEL9K_ANACONDA_RIGHT_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" ""
|
"$1_prompt_segment" "$0" "$2" "$3" "$4" "$POWERLEVEL9K_ANACONDA_PREFIX$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER$(basename $_path)$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER" ""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue