diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-07-17 11:38:22 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-07-17 11:38:22 +0300 |
commit | 83d80fa308f6f8a496205a1ad5cb2ae4c4be55a6 (patch) | |
tree | 2ff186d16fd0d224b3fd6fa826af6518e919d980 /internal/p10k.zsh | |
parent | 2c135dd631019a251e073a0f4e86267cf12c50c0 (diff) |
don't leak 'state' local parameter
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 6fc78f31..2099c32f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1160,7 +1160,7 @@ function _p9k_parse_aws_config() { # AWS Profile prompt_aws() { typeset -g P9K_AWS_PROFILE="${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}" - local pat class + local pat class state for pat class in "${_POWERLEVEL9K_AWS_CLASSES[@]}"; do if [[ $P9K_AWS_PROFILE == ${~pat} ]]; then [[ -n $class ]] && state=_${${(U)class}//İ/I} @@ -4536,7 +4536,7 @@ prompt_azure() { fi _p9k_cache_stat_set "$name" fi - local pat class + local pat class state for pat class in "${_POWERLEVEL9K_AZURE_CLASSES[@]}"; do if [[ $name == ${~pat} ]]; then [[ -n $class ]] && state=_${${(U)class}//İ/I} @@ -4873,7 +4873,7 @@ function prompt_terraform() { _p9k_read_word ${${TF_DATA_DIR:-.terraform}:A}/environment && ws=$_p9k__ret fi [[ -z $ws || $ws == default && $_POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT == 0 ]] && return - local pat class + local pat class state for pat class in "${_POWERLEVEL9K_TERRAFORM_CLASSES[@]}"; do if [[ $ws == ${~pat} ]]; then [[ -n $class ]] && state=_${${(U)class}//İ/I} |