Skip to content

Commit

Permalink
Better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Aug 1, 2018
1 parent 794c4ed commit 72dcd80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ _agkozak_branch_changes() {

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

typeset -A messages
typeset -A status

messages=(
status=(
'&*' 'diverged'
'&' 'behind'
'*' 'Your branch is ahead of'
Expand All @@ -172,7 +172,7 @@ _agkozak_branch_changes() {

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

Expand Down

0 comments on commit 72dcd80

Please sign in to comment.