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:
parent
6c2c931416
commit
64b6bd6a87
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue