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

move zsh version check to the top

This commit is contained in:
romkatv 2019-04-29 11:27:41 +02:00
parent 844326642d
commit d29c30af3b

View file

@ -20,11 +20,10 @@
#zstyle ':vcs_info:*+*:*' debug true
#set -o xtrace
test -n "$ZSH_VERSION" || exit 1
if [[ -v _P9K_SOURCED ]]; then
prompt_powerlevel9k_setup "$@"
return
if test -z "${ZSH_VERSION}"; then
echo "powerlevel10k: unsupported shell; try zsh instead" >&2
return 1
exit 1
fi
if ! autoload -U is-at-least || ! is-at-least 5.2; then
@ -56,6 +55,11 @@ if ! autoload -U is-at-least || ! is-at-least 5.2; then
return 1
fi
if [[ -v _P9K_SOURCED ]]; then
prompt_powerlevel9k_setup "$@"
return
fi
readonly _P9K_SOURCED=1
typeset -g _P9K_INSTALLATION_DIR