From 8eca7759778dcc1eee0374c9a6ac5bdeecb9a5c5 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 1 Oct 2015 20:06:01 +0200 Subject: [PATCH] hg prompt: Throw away `string match` input This would print redundant characters --- share/functions/__fish_hg_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_hg_prompt.fish b/share/functions/__fish_hg_prompt.fish index 6a9f00a96..850280497 100644 --- a/share/functions/__fish_hg_prompt.fish +++ b/share/functions/__fish_hg_prompt.fish @@ -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