From 851ad97787e15cbd4e66e9a69bce8553ef70b8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandros=20Koz=C3=A1k?= Date: Wed, 1 Aug 2018 14:13:55 -0700 Subject: [PATCH] Revert "Better variable name" This reverts commit 72dcd80ed1a91e36c42440ae8cc42732b0465e7d. --- agkozak-zsh-prompt.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agkozak-zsh-prompt.plugin.zsh b/agkozak-zsh-prompt.plugin.zsh index e715a54..6e24148 100644 --- a/agkozak-zsh-prompt.plugin.zsh +++ b/agkozak-zsh-prompt.plugin.zsh @@ -157,9 +157,9 @@ _agkozak_branch_changes() { git_status="$(LC_ALL=C command git status 2>&1)" - typeset -A status + typeset -A messages - status=( + messages=( '&*' 'diverged' '&' 'behind' '*' 'Your branch is ahead of' @@ -172,7 +172,7 @@ _agkozak_branch_changes() { for k in '&*' '&' '*' '+' 'x' '!' '>' '?'; do case $git_status in - *${status[$k]}*) symbols+="$k" ;; + *${messages[$k]}*) symbols+="$k" ;; esac done