diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 03:56:26 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-28 03:56:26 +0300 |
commit | b01588e2f96fdc0da8df8cef14895b1e22384da7 (patch) | |
tree | ad894a859fa8d4f8d077926d3952a27c94900898 /powerlevel9k.zsh-theme | |
parent | 46575182c78d441eacf928fd368a4c20b1aaa0b5 (diff) |
File might be a symlink.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 610b2cbe..624f7a57 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -32,9 +32,14 @@ if [[ $(whence -w prompt_powerlevel9k_setup) =~ "function" ]]; then print -P "%F{red}We could not locate the installation path of powerlevel9k.%f" print -P "Please specify by setting %F{blue}POWERLEVEL9K_INSTALLATION_PATH%f (full path incl. file name) at the very beginning of your ~/.zshrc" return 1 + elif [[ -L "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then + # Symlink + 0="$POWERLEVEL9K_INSTALLATION_PATH" elif [[ -f "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then + # File 0="$POWERLEVEL9K_INSTALLATION_PATH" elif [[ -d "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then + # Directory 0="${POWERLEVEL9K_INSTALLATION_PATH}/powerlevel9k.zsh-theme" fi |