[hg prompt] Use hg status -q

For some reason, `hg status -q` prints the exact same output as `hg
status`, but about 20% faster.
This commit is contained in:
Fabian Homborg 2018-05-08 22:52:16 +02:00
parent 2c312d05df
commit 88b688c544

View file

@ -52,7 +52,9 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
echo -n '|'
set -l repo_status (hg status | string sub -l 2 | sort -u)
# 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)
# Show nice color for a clean repo
if test -z "$repo_status"