From d6dedc53bc41439351b0a6c5b960855d6cfe6b37 Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 31 Jul 2019 09:53:00 +0200 Subject: [PATCH] support hot reloading of gitstatus parameters --- internal/p10k.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 62b4bf58..9ff31681 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4069,7 +4069,8 @@ _p9k_init_ssh() { _p9k_must_init() { emulate -L zsh && setopt no_hist_expand extended_glob - local -a param_keys=(${(o)parameters[(I)(POWERLEVEL9K_*|DEFAULT_USER|ZLE_RPROMPT_INDENT)]}) + local -a param_keys=( + ${(o)parameters[(I)(POWERLEVEL9K_*|GITSTATUS_LOG_LEVEL|GITSTATUS_ENABLE_LOGGING|GITSTATUS_DAEMON|GITSTATUS_NUM_THREADS|DEFAULT_USER|ZLE_RPROMPT_INDENT)]}) local IFS param_sig IFS=$'\1' param_sig="${(@)param_keys:/(#b)(*)/$match[1]=\$$match[1]}" IFS=$'\2' eval "param_sig=x\"$param_sig\""