Skip to content

Commit

Permalink
Made 'x' a local variable so the 'git_prompt_color_samples' command c…
Browse files Browse the repository at this point in the history
…an be repeated.
  • Loading branch information
gcbartlett committed May 12, 2016
1 parent ba19c41 commit 21e7426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-prompt-help.sh
Expand Up @@ -65,6 +65,7 @@ git_prompt_color_samples() {
echo -e "${color}$1${ResetColor}" | sed 's/\\\]//g' | sed 's/\\\[//g'
}

local x
while (( x < 8 )) ; do
showColor ${ColorNames[x]}
showColor "Dim${ColorNames[x]}"
Expand Down

0 comments on commit 21e7426

Please sign in to comment.