mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-17 02:00:07 +00:00
bail out when the theme is being sourced second time
This commit is contained in:
parent
45588cc28a
commit
0fa2f7ba65
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
|||
#zstyle ':vcs_info:*+*:*' debug true
|
||||
#set -o xtrace
|
||||
|
||||
# Bail out if it's not the first time the file is being sourced.
|
||||
# Second sourcing will cause mayhem.
|
||||
[[ -v _P9K_SOURCED ]] && return
|
||||
readonly _P9K_SOURCED=1
|
||||
|
||||
typeset -g _P9K_INSTALLATION_DIR
|
||||
|
||||
# Try to set the installation path
|
||||
|
|
Loading…
Reference in a new issue