Mercurial > repos > other > linux
diff bashrc @ 140:f5dd593cc018
Only show "u=" for hg when we're in a VCS'd directory
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 18 Jan 2020 20:54:13 +0000 |
parents | 920255137b9d |
children | 39abe6b6233f |
line wrap: on
line diff
--- a/bashrc Sat Jan 18 20:41:50 2020 +0000 +++ b/bashrc Sat Jan 18 20:54:13 2020 +0000 @@ -49,7 +49,7 @@ 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 + elif [[ "x$VCS_EXTRA" != "x" ]]; then VCS_EXTRA="${VCS_EXTRA} u=" fi fi