diff --git a/internal/p10k.zsh b/internal/p10k.zsh index d98905e9..aeb997c9 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5739,7 +5739,7 @@ _p9k_set_instant_prompt() { [[ -n $RPROMPT ]] || unset RPROMPT } -typeset -gri __p9k_instant_prompt_version=29 +typeset -gri __p9k_instant_prompt_version=30 _p9k_dump_instant_prompt() { local user=${(%):-%n} @@ -5806,6 +5806,7 @@ _p9k_dump_instant_prompt() { fi fi fi + (( terminfo[colors] == '${terminfo[colors]:-0}' )) || return (( $+terminfo[cuu] && $+terminfo[cuf] && $+terminfo[ed] && $+terminfo[sc] && $+terminfo[rc] )) || return local pwd=${(%):-%/} [[ $pwd == /* ]] || return @@ -7885,9 +7886,9 @@ _p9k_must_init() { _p9k__param_pat+=$'$__p9k_sh_glob\1$__p9k_ksh_arrays\1$ITERM_SHELL_INTEGRATION_INSTALLED\1' _p9k__param_pat+=$'${PROMPT_EOL_MARK-%B%S%#%s%b}\1$commands[locale]\1$langinfo[CODESET]\1' _p9k__param_pat+=$'$VTE_VERSION\1$TERM_PROGRAM\1$DEFAULT_USER\1$P9K_SSH\1$commands[uname]\1' - _p9k__param_pat+=$'$__p9k_root_dir\1$functions[p10k-on-init]$functions[p10k-on-pre-prompt]\1' - _p9k__param_pat+=$'$functions[p10k-on-post-widget]$functions[p10k-on-post-prompt]\1' - _p9k__param_pat+=$'$+commands[git]' + _p9k__param_pat+=$'$__p9k_root_dir\1$functions[p10k-on-init]\1$functions[p10k-on-pre-prompt]\1' + _p9k__param_pat+=$'$functions[p10k-on-post-widget]\1$functions[p10k-on-post-prompt]\1' + _p9k__param_pat+=$'$+commands[git]\1$terminfo[colors]' local MATCH IFS=$'\1' _p9k__param_pat+="${(@)${(@o)parameters[(I)POWERLEVEL9K_*]}:/(#m)*/\${${(q)MATCH}-$IFS\}}" IFS=$'\2' _p9k__param_sig="${(e)_p9k__param_pat}"