mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
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:
parent
69abbd7b2a
commit
805a8db7ef
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue