aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 40ac92d9..48de4907 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4254,6 +4254,9 @@ _p9k_precmd_impl() {
if [[ $precmd_functions[-1] != _p9k_precmd && $precmd_functions[(I)_p9k_precmd] != 0 ]]; then
precmd_functions=(${(@)precmd_functions:#_p9k_precmd} _p9k_precmd)
fi
+ if [[ $precmd_functions[1] != _p9k_do_nothing && $precmd_functions[(I)_p9k_do_nothing] != 0 ]]; then
+ precmd_functions=(_p9k_do_nothing ${(@)precmd_functions:#_p9k_do_nothing})
+ fi
}
_p9k_trapint() {
@@ -5684,8 +5687,7 @@ prompt_powerlevel9k_setup() {
prompt_powerlevel9k_teardown
__p9k_enabled=1
add-zsh-hook preexec _p9k_preexec
- add-zsh-hook precmd _p9k_do_nothing
- add-zsh-hook precmd _p9k_precmd
+ typeset -ga precmd_functions=(_p9k_do_nothing $precmd_functions _p9k_precmd)
}
prompt_powerlevel9k_teardown() {