diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-11-02 21:34:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 21:34:37 +0300 |
commit | ba7d11667789ceae97ccbbf5829be7d41055f604 (patch) | |
tree | 1cb593c718e258724b5d9c2bbb59ae921578f1d6 /powerlevel9k.zsh-theme | |
parent | 98729cdc4a0b6b0539606126e918a29f5d12b791 (diff) | |
parent | 47c7077cde833217db8a4dadbabaf38e6ff490d3 (diff) |
Merge pull request #663 from MarcHauptmann/master
declared variables as 'local'
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index f6646c63..3c173e9f 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1332,7 +1332,7 @@ powerlevel9k_vcs_init() { prompt_vcs() { VCS_WORKDIR_DIRTY=false VCS_WORKDIR_HALF_DIRTY=false - current_state="" + local current_state="" # Actually invoke vcs_info manually to gather all information. vcs_info @@ -1434,6 +1434,7 @@ prompt_kubecontext() { # Main prompt build_left_prompt() { local index=1 + local element for element in "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[@]}"; do # Remove joined information in direct calls element=${element%_joined} |