# HG changeset patch # User IBBoard # Date 1579380007 0 # Node ID 920255137b9d5dce7336cc75de8b2f0198e782c6 # Parent f71524147eb40daa3f466a77bb63a470c90b4721 Include a "status" flag Also now default to "u=" when no changes, as Git prompt does diff -r f71524147eb4 -r 920255137b9d bashrc --- 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