1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[zsh] Git prompt - manage the new output of git status in 1.8.5.1

This commit is contained in:
Hyacinthe Cartiaux 2013-12-10 13:57:45 +01:00
parent 6c2c931416
commit 64b6bd6a87

View file

@ -78,6 +78,8 @@ update_current_git_vars()
__CURRENT_GIT_BRANCH_STATUS='ahead'
elif [[ $arr[2] =~ 'diverged' ]]; then
__CURRENT_GIT_BRANCH_STATUS='diverged'
elif [[ $arr[2] =~ 'up-to-date' ]]; then
__CURRENT_GIT_BRANCH_STATUS=''
else
__CURRENT_GIT_BRANCH_STATUS='behind'
fi