mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-17 02:00:07 +00:00
File might be a symlink.
This commit is contained in:
parent
46575182c7
commit
b01588e2f9
1 changed files with 5 additions and 0 deletions
|
@ -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 "%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"
|
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
|
return 1
|
||||||
|
elif [[ -L "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
||||||
|
# Symlink
|
||||||
|
0="$POWERLEVEL9K_INSTALLATION_PATH"
|
||||||
elif [[ -f "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
elif [[ -f "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
||||||
|
# File
|
||||||
0="$POWERLEVEL9K_INSTALLATION_PATH"
|
0="$POWERLEVEL9K_INSTALLATION_PATH"
|
||||||
elif [[ -d "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
elif [[ -d "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
||||||
|
# Directory
|
||||||
0="${POWERLEVEL9K_INSTALLATION_PATH}/powerlevel9k.zsh-theme"
|
0="${POWERLEVEL9K_INSTALLATION_PATH}/powerlevel9k.zsh-theme"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue