mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
functions/fish_hg_prompt: Remove --color and --pager
These weren't added long enough ago, and I only added them speculatively. So it should make it work with old hg versions. CC @zanchey. [ci skip]
This commit is contained in:
parent
b0388ed488
commit
e672b03993
|
@ -39,7 +39,7 @@ function fish_hg_prompt --description 'Write out the hg prompt'
|
||||||
echo -n '|'
|
echo -n '|'
|
||||||
|
|
||||||
# Disabling color and pager is always a good idea.
|
# Disabling color and pager is always a good idea.
|
||||||
set -l repo_status (hg status --color never --pager never | string sub -l 2 | sort -u)
|
set -l repo_status (hg status | string sub -l 2 | sort -u)
|
||||||
|
|
||||||
# Show nice color for a clean repo
|
# Show nice color for a clean repo
|
||||||
if test -z "$repo_status"
|
if test -z "$repo_status"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user