mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
[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:
parent
2c312d05df
commit
88b688c544
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue