--- a/.bash_prompt Wed Aug 27 03:39:55 2014 +0900
+++ b/.bash_prompt Wed Aug 27 03:54:46 2014 +0900
local GIT_STATUS=$(LC_ALL=C git status 2>/dev/null)
local GIT_BRANCH=$(grep -Po '(?<=On branch ).*$' <<< "$GIT_STATUS")
- if [[ $(grep "Your branch is behind" <<< "$GIT_STATUS") ]]; then
+ if [[ $GIT_STATUS == *'Your branch is behind'* ]]; then
- if [[ $(grep "Changes to be committed" <<< "$GIT_STATUS") ]]; then
+ if [[ $GIT_STATUS == *'Changes to be committed'* ]]; then
- if [[ $(grep "Changes not staged" <<< "$GIT_STATUS") ]]; then
+ if [[ $GIT_STATUS == *'Changes not staged'* ]]; then