aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:59:14 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:59:14 +0300
commite9335145b338adaa2d044b066e0c93ceabdd50ed (patch)
treef3b4a2e598205b7da28a40fff8f136f75f73d18d /internal/p10k.zsh
parent1efade9962123a3b60f4277b12190dc459359693 (diff)
add all p10k-* hooks to parameter signature
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index e09575cb..0cf27344 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6179,7 +6179,8 @@ _p9k_must_init() {
_p9k__param_pat+=$'$DEFAULT_USER\1${ZLE_RPROMPT_INDENT:-1}\1$P9K_SSH\1$__p9k_ksh_arrays'
_p9k__param_pat+=$'$__p9k_sh_glob\1$ITERM_SHELL_INTEGRATION_INSTALLED\1'
_p9k__param_pat+=$'${PROMPT_EOL_MARK-%B%S%#%s%b}\1$LANG\1$LC_ALL\1$LC_CTYPE\1'
- _p9k__param_pat+=$'$functions[p10k-on-pre-prompt]\1'
+ _p9k__param_pat+=$'$functions[p10k-on-init]$functions[p10k-on-pre-prompt]\1'
+ _p9k__param_pat+=$'$functions[p10k-on-post-widget]$functions[p10k-on-post-prompt]\1'
local MATCH
IFS=$'\1' _p9k__param_pat+="${(@)${(@o)parameters[(I)POWERLEVEL9K_*]}:/(#m)*/\${${(q)MATCH}-$IFS\}}"
IFS=$'\2' _p9k__param_sig="${(e)_p9k__param_pat}"