Mercurial > repos > other > linux
diff bashrc @ 138:920255137b9d
Include a "status" flag
Also now default to "u=" when no changes, as Git prompt does
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 18 Jan 2020 20:40:07 +0000 |
parents | 5f6e4aa53501 |
children | f5dd593cc018 |
line wrap: on
line diff
--- a/bashrc Sat Jan 18 20:28:52 2020 +0000 +++ b/bashrc Sat Jan 18 20:40:07 2020 +0000 @@ -45,10 +45,12 @@ VCS_EXTRA=$(__git_ps1 "%s") if [[ "x$VCS_EXTRA" == "x" ]]; then - VCS_EXTRA=$(hg branch 2>/dev/null) + VCS_EXTRA=$(hg prompt "{branch}{ {status|modified}}" 2>/dev/null) HG_EXTRA=$(hg prompt "{-{incoming|count}}{+{outgoing|count}}" 2>/dev/null) if [[ "x$HG_EXTRA" != "x" ]]; then VCS_EXTRA="${VCS_EXTRA} u${HG_EXTRA}" + else + VCS_EXTRA="${VCS_EXTRA} u=" fi fi if [[ "x$VCS_EXTRA" != "x" ]]; then