Mercurial > repos > other > linux
changeset 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 | f71524147eb4 |
children | c09729100dd2 |
files | bashrc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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