summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-08 15:57:20 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-08 15:57:20 +0300
commite4aa4588dd2ed21df8d9068c1d110a6c83d997ef (patch)
tree3f2dab0925c4e8c7ac764e6154392acdd1bfea83 /internal
parent1382fa7e81764ed95baa09c72e529e6403dbae6f (diff)
work around a bug in zsh that skips precmd hooks after trapped SIGINT if there is just one of them
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 91cf2040..f3b4ca27 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5646,6 +5646,8 @@ else
typeset -gri __p9k_dumps_enabled=0
fi
+_p9k_do_nothing() { true; }
+
prompt_powerlevel9k_setup() {
(( __p9k_enabled )) && return
@@ -5660,6 +5662,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
}