diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-21 23:26:50 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-21 23:26:50 +0300 |
commit | a0323b7e8075a8b59d671a48484117e5152bebf9 (patch) | |
tree | 98ff31e04449f9d86373a5c30426196b024772ce | |
parent | 0aaf99985754cc0759ca3b7e94bdee111d5a94f8 (diff) |
The installation path of powerlevel9k is now configurable by setting the variable POWERLEVEL9K_INSTALLATION_PATH. The value must be set to the exact location of the powerlevel9k.zsh-theme file (including the file name).
This has only effect if you load your theme as a function and your ZSH version is below 5.0.8.
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 727461d1..29f9804c 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -26,7 +26,9 @@ if [[ $(whence -w prompt_powerlevel9k_setup) =~ "function" ]]; then else # Script is a function! We assume this to happen only in # prezto, as they use the zstyle-builtin to set the theme. - 0="${ZDOTDIR:-$HOME}/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup" + [[ -z "$POWERLEVEL9K_INSTALLATION_PATH" ]] && POWERLEVEL9K_INSTALLATION_PATH="${ZDOTDIR:-$HOME}/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup" + + 0=$POWERLEVEL9K_INSTALLATION_PATH fi fi |