# HG changeset patch # User Steve Huston # Date 1712603460 14400 # Node ID c15ff56617a98998e2996d1254f768a151f44f7d # Parent 93279b4ed0b448b9a041a3cee0ad3662e58f20b5 Have to catch things a little differently, newer git output isn't the same diff -r 93279b4ed0b4 -r c15ff56617a9 .bash_prompt --- a/.bash_prompt Mon Apr 01 17:46:06 2024 -0400 +++ b/.bash_prompt Mon Apr 08 15:11:00 2024 -0400 @@ -53,10 +53,12 @@ fi # Set arrow icon based on status against remote. - remote_pattern="Your branch is (.*)" + remote_pattern="Your branch is ([^${IFS}]*)" if [[ ${git_status} =~ ${remote_pattern} ]]; then if [[ ${BASH_REMATCH[1]} == "ahead" ]]; then remote="↑" + elif [[ ${BASH_REMATCH[1]} == "up" ]]; then + remote="" else remote="↓" fi