mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
wip: instant prompt (part 4)
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
return
|
||||
fi
|
||||
typeset -gr __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh
|
||||
if [[ -z $__p9k_dump_file(.zwc|)(#qNW) ]] && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
|
||||
if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
|
||||
_p9k_preinit
|
||||
fi
|
||||
typeset -gr __p9k_sourced=1
|
||||
@@ -40,5 +40,7 @@
|
||||
source $__p9k_root_dir/internal/p10k.zsh || true
|
||||
}
|
||||
|
||||
(( ! $+__p9k_instant_prompt_active )) || unsetopt local_options prompt_cr prompt_sp
|
||||
|
||||
(( ${#__p9k_src_opts} )) && setopt ${__p9k_src_opts[@]}
|
||||
'builtin' 'unset' '__p9k_src_opts'
|
||||
|
||||
Reference in New Issue
Block a user