Skip to content

Commit 1b59e1e

Browse files
committed
Update git-prompt-help.sh
Initialized local x to 0 (in case it is already set).
1 parent 21e7426 commit 1b59e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-prompt-help.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ git_prompt_color_samples() {
6565
echo -e "${color}$1${ResetColor}" | sed 's/\\\]//g' | sed 's/\\\[//g'
6666
}
6767

68-
local x
68+
local x=0
6969
while (( x < 8 )) ; do
7070
showColor ${ColorNames[x]}
7171
showColor "Dim${ColorNames[x]}"

0 commit comments

Comments
 (0)