Skip to content

Commit 851ad97

Browse files
committed
Revert "Better variable name"
This reverts commit 72dcd80.
1 parent 72dcd80 commit 851ad97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ _agkozak_branch_changes() {
157157

158158
git_status="$(LC_ALL=C command git status 2>&1)"
159159

160-
typeset -A status
160+
typeset -A messages
161161

162-
status=(
162+
messages=(
163163
'&*' 'diverged'
164164
'&' 'behind'
165165
'*' 'Your branch is ahead of'
@@ -172,7 +172,7 @@ _agkozak_branch_changes() {
172172

173173
for k in '&*' '&' '*' '+' 'x' '!' '>' '?'; do
174174
case $git_status in
175-
*${status[$k]}*) symbols+="$k" ;;
175+
*${messages[$k]}*) symbols+="$k" ;;
176176
esac
177177
done
178178

0 commit comments

Comments
 (0)