summaryrefslogtreecommitdiff
path: root/powerlevel10k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-27 11:33:01 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-27 11:33:01 +0300
commit3bca7e845f6e85b7fad20e0356ca3ec14b187dd1 (patch)
tree66e0c7ac51647e663f735957cc823bea15fafdca /powerlevel10k.zsh-theme
parentb7777bb86e0b5358f9d6d0bc81bc829f5b55eaba (diff)
detect source code corruption done by antigen and suggest resetting cache
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r--powerlevel10k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme
index 57cb3502..6069543b 100644
--- a/powerlevel10k.zsh-theme
+++ b/powerlevel10k.zsh-theme
@@ -28,14 +28,14 @@
() {
eval $__p9k_intro
if (( $+__p9k_sourced )); then
- prompt_powerlevel9k_setup
+ (( $+functions[_p9k_setup] )) && _p9k_setup
return 0
fi
typeset -gr __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh
if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && (( ! $+functions[_p9k_preinit] )) && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
_p9k_preinit
fi
- typeset -gr __p9k_sourced=1
+ typeset -gr __p9k_sourced=2
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
local f
for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,internal/worker.zsh,gitstatus/gitstatus.plugin.zsh}; do