--- a/.bash_prompt Wed Aug 27 22:21:17 2014 +0900
+++ b/.bash_prompt Thu Aug 28 17:59:32 2014 +0900
if [[ $GIT_STATUS == *'Your branch is behind'* ]]; then
+ [[ $GIT_STATUS =~ behind[^$'\n']+([0-9]+)' 'commit ]] && GIT_BEHIND+=${BASH_REMATCH[1]}
if [[ $GIT_STATUS == *'Your branch is ahead'* ]]; then
+ [[ $GIT_STATUS =~ ahead[^$'\n']+([0-9]+)' 'commit ]] && GIT_AHEAD+=${BASH_REMATCH[1]}
if [[ $GIT_STATUS == *'Changes to be committed'* ]]; then