--- a/.bash_prompt Thu Feb 27 20:01:56 2014 +0900
+++ b/.bash_prompt Thu Apr 03 01:09:45 2014 +0900
if [[ "$GIT_TRACKED" ]] ; then
local GIT_STATUS=$(git status 2>/dev/null)
- local GIT_BRANCH=$(grep '# On branch' <<< "$GIT_STATUS" | cut -d' ' -f4-)
+ local GIT_BRANCH=$(grep 'On branch' <<< "$GIT_STATUS" | cut -d' ' -f3-)
- if [[ $(grep "# Your branch is behind" <<< "$GIT_STATUS") ]]; then
+ if [[ $(grep "Your branch is behind" <<< "$GIT_STATUS") ]]; then
- if [[ $(grep "# Changes to be committed:" <<< "$GIT_STATUS") ]]; then
+ if [[ $(grep "Changes to be committed" <<< "$GIT_STATUS") ]]; then
- if [[ $(grep "# Changes not staged for commit:" <<< "$GIT_STATUS") ]]; then
+ if [[ $(grep "Changes not staged" <<< "$GIT_STATUS") ]]; then