aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-04 10:21:49 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-04 10:21:49 +0300
commit93c19e1d626900bfa3523ce122a19ecc1ffd12b6 (patch)
tree4618e7ee467ed16cf5019ee0d8c4cbeecc781614 /powerlevel9k.zsh-theme
parent9c8cf7ac5f511648e40865941bccf90b7afaf80e (diff)
run preinit asap
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 5fc89041..7c8c5bdb 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -27,6 +27,9 @@ typeset -g __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh
prompt_powerlevel9k_setup
return
fi
+ if [[ -z $__p9k_dump_file(.zwc|)(#qNW) ]] && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
+ _p9k_preinit
+ fi
typeset -gr __p9k_sourced=1
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
local f
@@ -34,9 +37,6 @@ typeset -g __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh
[[ $f.zwc -nt $f ]] || zcompile $f
done
fi
- if [[ -z $__p9k_dump_file(.zwc|)(#qNW) ]] && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
- _p9k_preinit
- fi
source $__p9k_root_dir/internal/p10k.zsh || true
}