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