aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-27 12:48:17 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-27 12:48:17 +0300
commit6096321f611a4850deeb9b3d6726112621924086 (patch)
tree2aed124e9a5a788d895e565abb4a921e5049d8e3 /internal/p10k.zsh
parentd40f54f30de765b764d916f0128e524940b3ad9c (diff)
move _p9k_precmd to the end of precmd_functions
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index f7576b50..fd9b41de 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3938,6 +3938,9 @@ _p9k_precmd_impl() {
fi
_p9k_init
_p9k__instant_prompt_disabled=$((_POWERLEVEL9K_DISABLE_INSTANT_PROMPT || instant_prompt_disabled))
+ if (( $+precmd_functions && precmd_functions[(I)_p9k_precmd] )); then
+ precmd_functions=(${(@)precmd_functions:#_p9k_precmd} _p9k_precmd)
+ fi
fi
if (( _p9k__timer_start )); then