mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
Using default color setters
This commit is contained in:
parent
97e5684e52
commit
50b978ddc8
2 changed files with 3 additions and 5 deletions
|
@ -147,8 +147,8 @@ This segment shows your active anaconda environment. It relies on the
|
||||||
|
|
||||||
| Variable | Default Value | Description |
|
| Variable | Default Value | Description |
|
||||||
|----------|---------------|-------------|
|
|----------|---------------|-------------|
|
||||||
|`POWERLEVEL9K_ANACONDA_BG_COLOR`|"green"|Background color of the segment.|
|
|`POWERLEVEL9K_ANACONDA_BACKGROUND`|"green"|Background color of the segment.|
|
||||||
|`POWERLEVEL9K_ANACONDA_FG_COLOR`|"black"|Foreground color of the segment.|
|
|`POWERLEVEL9K_ANACONDA_FOREGROUND`|"black"|Foreground color of the segment.|
|
||||||
|`POWERLEVEL9K_ANACONDA_PREFIX`|""|Prefix before the environment name.|
|
|`POWERLEVEL9K_ANACONDA_PREFIX`|""|Prefix before the environment name.|
|
||||||
|`POWERLEVEL9K_ANACONDA_LEFT_DELIMITER`|"("|The left delimiter just before the environment name.|
|
|`POWERLEVEL9K_ANACONDA_LEFT_DELIMITER`|"("|The left delimiter just before the environment name.|
|
||||||
|`POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER`|")"|The right delimiter just after the environment name.|
|
|`POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER`|")"|The right delimiter just after the environment name.|
|
||||||
|
|
|
@ -296,12 +296,10 @@ 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_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_PREFIX || POWERLEVEL9K_ANACONDA_PREFIX=""
|
||||||
defined POWERLEVEL9K_ANACONDA_LEFT_DELIMITER || POWERLEVEL9K_ANACONDA_LEFT_DELIMITER="("
|
defined POWERLEVEL9K_ANACONDA_LEFT_DELIMITER || POWERLEVEL9K_ANACONDA_LEFT_DELIMITER="("
|
||||||
defined POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER || POWERLEVEL9K_ANACONDA_RIGHT_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 $_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