mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-10-01 09:14:34 +00:00
support hot reloading of gitstatus parameters
This commit is contained in:
+2
-1
@@ -4069,7 +4069,8 @@ _p9k_init_ssh() {
|
|||||||
|
|
||||||
_p9k_must_init() {
|
_p9k_must_init() {
|
||||||
emulate -L zsh && setopt no_hist_expand extended_glob
|
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
|
local IFS param_sig
|
||||||
IFS=$'\1' param_sig="${(@)param_keys:/(#b)(*)/$match[1]=\$$match[1]}"
|
IFS=$'\1' param_sig="${(@)param_keys:/(#b)(*)/$match[1]=\$$match[1]}"
|
||||||
IFS=$'\2' eval "param_sig=x\"$param_sig\""
|
IFS=$'\2' eval "param_sig=x\"$param_sig\""
|
||||||
|
|||||||
Reference in New Issue
Block a user