mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08: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
|
@ -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 New Issue
Block a user