diff options
author | Lion Krischer <krischer@geophysik.uni-muenchen.de> | 2016-08-31 01:31:33 +0300 |
---|---|---|
committer | Lion Krischer <krischer@geophysik.uni-muenchen.de> | 2016-08-31 01:31:33 +0300 |
commit | 9bc55ab175f2bf48e6673327df7e814de35f9d1e (patch) | |
tree | 1cd9f0f6bb33d715d179f1f8ce0405e8d8ff1a43 | |
parent | 35beead4308a164797fe4bd9026d860628064888 (diff) |
Using default way of setting icons and updating doc
-rw-r--r-- | README.md | 15 | ||||
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
2 files changed, 10 insertions, 8 deletions
@@ -140,19 +140,22 @@ The segments that are currently available are: ##### anaconda -This segment shows your active anaconda environment. It relies on the -`CONDA_ENV_PATH` environment variable to be set which happens when you properly -`source activate` an environment. +This segment shows your active anaconda environment. It relies on either the +`CONDA_ENV_PATH` or the `CONDA_PREFIX` (depending on the `conda` version) +environment variable to be set which happens when you properly `source +activate` an environment. +Special configuration variables: | Variable | Default Value | Description | |----------|---------------|-------------| -|`POWERLEVEL9K_ANACONDA_BACKGROUND`|"green"|Background color of the segment.| -|`POWERLEVEL9K_ANACONDA_FOREGROUND`|"black"|Foreground color of the segment.| -|`POWERLEVEL9K_ANACONDA_PREFIX`|""|Prefix 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.| +Additionally the following segment specific parameters can be used to customize +it: `POWERLEVEL9K_PYTHON_ICON`, `POWERLEVEL9K_ANACONDA_BACKGROUND`, and +`POWERLEVEL9K_ANACONDA_FOREGROUND`. + ##### aws If you would like to display the [current AWS diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c956cac8..b9af0cfa 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -296,10 +296,9 @@ prompt_anaconda() { _path=$CONDA_ENV_PATH$CONDA_PREFIX if ! [ -z "$_path" ]; then # config - can be overwritten in users' zshrc file. - 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" "" + "$1_prompt_segment" "$0" "$2" "$3" "$4" "$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER$(basename $_path)$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER" 'PYTHON_ICON' fi } |