mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
fix for when we are multiple commits ahead of origin
This commit is contained in:
parent
602e52e076
commit
f43523f6ed
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue