mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08: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
@ -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…
x
Reference in New Issue
Block a user