From 04541377926101bff05c97db4245f205412218a3 Mon Sep 17 00:00:00 2001 From: Felix Mauch Date: Fri, 27 May 2016 14:46:29 +0200 Subject: [PATCH] use new sed line for behind numbers as well --- themes/bureau.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bureau.zsh-theme b/themes/bureau.zsh-theme index 6d77b9f97..7b74b4bc6 100644 --- a/themes/bureau.zsh-theme +++ b/themes/bureau.zsh-theme @@ -53,7 +53,7 @@ bureau_git_status() { num=$(echo "$_AHEAD_BEHIND" | command sed 's/.*ahead \([0-9]*\).*/\1/') _STATUS="$_STATUS%{$fg[$ZSH_THEME_GIT_PROMPT_AHEAD_COLOR]%}$ZSH_THEME_GIT_PROMPT_AHEAD$num%{$reset_color%}" fi - if $(echo "$_INDEX" | command grep -q '^## .*behind [0-9]*'); then + if $(echo "$_AHEAD_BEHIND" | command grep -q 'behind'); then num=$(echo "$_AHEAD_BEHIND" | command sed 's/.*behind \([0-9]*\).*/\1/') _STATUS="$_STATUS%{$fg[$ZSH_THEME_GIT_PROMPT_BEHIND_COLOR]%}$ZSH_THEME_GIT_PROMPT_BEHIND$num%{$reset_color%}" fi