Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #663 from MarcHauptmann/master
Browse files Browse the repository at this point in the history
declared variables as 'local'
  • Loading branch information
bhilburn authored Nov 2, 2017
2 parents 98729cd + 47c7077 commit ba7d116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit ba7d116

Please sign in to comment.