functions/fish_hg_prompt: Show untracked files

Apparently "status --quiet" actually inhibits showing untracked files,
which explains why it's 20% faster (though it's quite weird use of
that option!)

Fixes #5749.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-03-18 22:25:58 +01:00
parent 69abbd7b2a
commit 805a8db7ef

View file

@ -38,9 +38,8 @@ function fish_hg_prompt --description 'Write out the hg prompt'
echo -n '|'
# For some reason, "-q" still prints the same output, but ~20% faster.
# Disabling color and pager is always a good idea.
set -l repo_status (hg status -q --color never --pager never | string sub -l 2 | sort -u)
set -l repo_status (hg status --color never --pager never | string sub -l 2 | sort -u)
# Show nice color for a clean repo
if test -z "$repo_status"