Update git-prompt-help.sh

Initialized local x to 0 (in case it is already set).
master
Gary Bartlett 10 years ago
parent 21e7426594
commit 1b59e1e075
  1. 2
      git-prompt-help.sh

@ -65,7 +65,7 @@ git_prompt_color_samples() {
echo -e "${color}$1${ResetColor}" | sed 's/\\\]//g' | sed 's/\\\[//g' echo -e "${color}$1${ResetColor}" | sed 's/\\\]//g' | sed 's/\\\[//g'
} }
local x local x=0
while (( x < 8 )) ; do while (( x < 8 )) ; do
showColor ${ColorNames[x]} showColor ${ColorNames[x]}
showColor "Dim${ColorNames[x]}" showColor "Dim${ColorNames[x]}"

Loading…
Cancel
Save