Mercurial > index.cgi > dotfiles
changeset 263:c15ff56617a9
Have to catch things a little differently, newer git output isn't the same
| author | Steve Huston <huston@princeton.edu> |
|---|---|
| date | Mon, 08 Apr 2024 15:11:00 -0400 |
| parents | 93279b4ed0b4 |
| children | bb69763716a7 |
| files | .bash_prompt |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
