mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-10-01 01:04:29 +00:00
run preinit asap
This commit is contained in:
@@ -27,6 +27,9 @@ typeset -g __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh
|
|||||||
prompt_powerlevel9k_setup
|
prompt_powerlevel9k_setup
|
||||||
return
|
return
|
||||||
fi
|
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
|
typeset -gr __p9k_sourced=1
|
||||||
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
|
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
|
||||||
local f
|
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
|
[[ $f.zwc -nt $f ]] || zcompile $f
|
||||||
done
|
done
|
||||||
fi
|
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
|
source $__p9k_root_dir/internal/p10k.zsh || true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user