diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-19 15:55:38 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-19 15:55:38 +0300 |
commit | 41c0a87918d349f7832cd978d331f3710afce080 (patch) | |
tree | 65bb74986a58d60aa80b53d9c3c348308d3cee9e /powerlevel10k.zsh-theme | |
parent | 68d6ffd844ab7c735051fb040a5b109587ced5aa (diff) |
wip: instant prompt (part 4)
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r-- | powerlevel10k.zsh-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme index 7bf59736..1808552c 100644 --- a/powerlevel10k.zsh-theme +++ b/powerlevel10k.zsh-theme @@ -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' |