Commits

Ches Martin  committed c755d4c

bash: Fix git prompt matching for recent git output changes

  • Participants
  • Parent commits 845d280

Comments (0)

Files changed (1)

File .bash.d/prompt.sh

     git_status="$(git status 2> /dev/null)"
     if [ -x git_status ]; then exit; fi
     git_stash="$(git stash list 2> /dev/null)"
-    branch_pattern="^# On branch ([^${IFS}]*)"
-    remote_pattern="# Your branch is (.*) of"
-    diverge_pattern="# Your branch and (.*) have diverged"
+    branch_pattern="^On branch ([^${IFS}]*)"
+    remote_pattern="Your branch is (.*) of"
+    diverge_pattern="Your branch and (.*) have diverged"
 
     if [[ ! ${git_status} =~ "working directory clean" ]]; then
         state="${RED}⚡"