hg prompt: Throw away string match input

This would print redundant characters
This commit is contained in:
Fabian Homborg 2015-10-01 20:06:01 +02:00
parent c3971957ac
commit 8eca775977

View file

@ -78,7 +78,7 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
end
end
if string match -r '^[AMCD]' $repo_status
if string match -r '^[AMCD]' $repo_status >/dev/null
set_color $fish_color_hg_modified
else
set_color $fish_color_hg_dirty