mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
hg_prompt: Use string match -q instead of redirection
This commit is contained in:
parent
4f519297dd
commit
8cc213ed4f
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if string match -r '^[AMCD]' $repo_status >/dev/null
|
if string match -qr '^[AMCD]' $repo_status
|
||||||
set_color $fish_color_hg_modified
|
set_color $fish_color_hg_modified
|
||||||
else
|
else
|
||||||
set_color $fish_color_hg_dirty
|
set_color $fish_color_hg_dirty
|
||||||
|
|
Loading…
Reference in a new issue