--- a/.bash_prompt Wed Aug 27 16:34:44 2014 +0900
+++ b/.bash_prompt Wed Aug 27 21:54:16 2014 +0900
if [[ $GIT_TRACKED ]] ; then
local GIT_STATUS=$(LC_ALL=C git status 2>/dev/null)
local GIT_BRANCH=$(grep -Po '(?<=On branch ).*$' <<< "$GIT_STATUS")
+ local GIT_REV=$(LC_ALL=C git rev-parse --short HEAD 2>/dev/null)
if [[ $GIT_STATUS == *'Your branch is behind'* ]]; then
- local GIT_INFO=" ${G}${GIT_BRANCH}±${GIT_STAGED}${GIT_UNSTAGED}${GIT_UPDATE}${RESET}"
+ local GIT_INFO=" ${G}${GIT_BRANCH}±${GIT_REV}${GIT_STAGED}${GIT_UNSTAGED}${GIT_UPDATE}${RESET}"