Mercurial > repos > other > linux
changeset 163:cfdd6905e453
Include untracked files in custom HG Prompt
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 15 Nov 2023 19:28:45 +0000 |
parents | bb0e1239a611 |
children | d6bf7ed9024c |
files | bashrc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bashrc Sun Nov 12 09:04:28 2023 +0000 +++ b/bashrc Wed Nov 15 19:28:45 2023 +0000 @@ -69,7 +69,7 @@ HG_ROOT=$(rhg root 2>/dev/null) if [[ "x$HG_ROOT" != "x" ]]; then HG_BRANCH=$(<"${HG_ROOT}"/.hg/branch) - HG_MODIFIED=$([ "$(rhg status -mard | head -c1)" ] && echo " *") + HG_MODIFIED=$([ "$(rhg status -marud | head -c1)" ] && echo " *") HG_INCOMING_PATH="${HG_ROOT}"/.hg/prompt/cache/incoming HG_OUTGOING_PATH="${HG_ROOT}"/.hg/prompt/cache/outgoing if [[ ! -f "${HG_INCOMING_PATH}" || $(($(date +%s) - $(date -r "${HG_INCOMING_PATH}" +%s 2>/dev/null || echo 0) )) -gt $HG_CACHE_TIMEOUT ]]; then