From 8cc213ed4ffbdbb98b86ddce6a5a98c3c9f5aa9d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 8 Jan 2016 14:10:03 +0100 Subject: [PATCH] hg_prompt: Use string match -q instead of redirection --- 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 850280497..b40e70a24 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 >/dev/null + if string match -qr '^[AMCD]' $repo_status set_color $fish_color_hg_modified else set_color $fish_color_hg_dirty