Made 'x' a local variable so the 'git_prompt_color_samples' command can be repeated.

master
Gary Bartlett 10 years ago
parent ba19c4134d
commit 21e7426594
  1. 1
      git-prompt-help.sh

@ -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]}"

Loading…
Cancel
Save