diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-12 13:03:49 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-12 13:03:49 +0300 |
commit | d92c45c6bda30c48729fd90e6951f5f5329f4b3c (patch) | |
tree | 0136f46c47f2848e5718986212f59839169b48e5 /internal/p10k.zsh | |
parent | 1387763f2719661dc7e43e86a5bfd24cc357d6a0 (diff) |
move _p9k_do_nothing to the front of precmd_functions
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 6 |
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() { |