From f43523f6ed9a46d554eb8302c63e89fb0a580c57 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Wed, 27 Jul 2011 02:59:31 -0400 Subject: [PATCH] fix for when we are multiple commits ahead of origin --- themes/tolkien.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/tolkien.zsh-theme b/themes/tolkien.zsh-theme index 959ed2b15..9bda136f8 100644 --- a/themes/tolkien.zsh-theme +++ b/themes/tolkien.zsh-theme @@ -18,7 +18,8 @@ function git_ahead { AHEAD=$(echo "$GITSTATUS" | grep '^# Your branch is ahead of' 2> /dev/null) if [[ -n $AHEAD ]]; then AHEAD=${AHEAD##\# Your branch is ahead of * by } - AHEAD=${AHEAD%% commit.} + AHEAD=${AHEAD%% commits.} + AHEAD=${AHEAD%% commit.} echo "^%{$fg[magenta]%}"$AHEAD"%{$reset_color%}" fi