diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-07-31 10:53:00 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-07-31 10:53:00 +0300 |
commit | d6dedc53bc41439351b0a6c5b960855d6cfe6b37 (patch) | |
tree | 63ee2ce24378c399c27a20ff7093d59dbbce08bc | |
parent | 2ce69f9554f5f3890b9856cdd616f88734afd5bc (diff) |
support hot reloading of gitstatus parameters
-rwxr-xr-x | internal/p10k.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
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\"" |