1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

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.
This commit is contained in:
Dominik Ritter 2015-11-21 21:26:50 +01:00
parent 0aaf999857
commit a0323b7e80

View file

@ -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