hg_prompt: Use string match -q instead of redirection

This commit is contained in:
Fabian Homborg 2016-01-08 14:10:03 +01:00
parent 4f519297dd
commit 8cc213ed4f

View file

@ -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