From 805a8db7ef83a1ed409ad8b21095a665cd395d0c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 18 Mar 2019 22:25:58 +0100 Subject: [PATCH] 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] --- share/functions/fish_hg_prompt.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/functions/fish_hg_prompt.fish b/share/functions/fish_hg_prompt.fish index 584695f54..93c4d102b 100644 --- a/share/functions/fish_hg_prompt.fish +++ b/share/functions/fish_hg_prompt.fish @@ -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"