--- a/.bash_prompt Sun Sep 07 18:58:52 2014 +0900
+++ b/.bash_prompt Mon Sep 08 00:09:14 2014 +0900
[[ $STATUS =~ ahead[^$'\n']+([0-9]+)' 'commit ]] && AHEAD+=${BASH_REMATCH[1]}
+ if [[ $STATUS == *detached* ]] ; then
if [[ $STATUS == *'Changes to be committed'* ]] ; then
- GIT_INFO=" ${G}${BRANCH}±${P}${REV}${BEHIND}${AHEAD}${STAGED}${UNSTAGED}${RESET}"
+ GIT_INFO=" ${G}${BRANCH}±${REV}${BEHIND}${AHEAD}${STAGED}${UNSTAGED}${RESET}"
# first find prompt in hgrc, then check it's actually enabled