mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 13:41:56 +00:00
bail if someone tries to interpet powerlevel9k.zsh-theme with sh
This commit is contained in:
parent
f0770b414e
commit
604de18654
1 changed files with 7 additions and 3 deletions
|
@ -20,9 +20,13 @@
|
||||||
#zstyle ':vcs_info:*+*:*' debug true
|
#zstyle ':vcs_info:*+*:*' debug true
|
||||||
#set -o xtrace
|
#set -o xtrace
|
||||||
|
|
||||||
# Bail out if it's not the first time the file is being sourced.
|
test -n "$ZSH_VERSION" || exit 1
|
||||||
# Second sourcing will cause mayhem.
|
|
||||||
[[ -v _P9K_SOURCED ]] && return
|
if [[ -v _P9K_SOURCED ]]; then
|
||||||
|
prompt_powerlevel9k_setup "$@"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
readonly _P9K_SOURCED=1
|
readonly _P9K_SOURCED=1
|
||||||
|
|
||||||
typeset -g _P9K_INSTALLATION_DIR
|
typeset -g _P9K_INSTALLATION_DIR
|
||||||
|
|
Loading…
Reference in a new issue