From b8fd08811cce30ddfc6adc9392ba5b7a83da636f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 26 Jan 2019 19:19:24 +0100 Subject: [PATCH] functions/__terlar_git_prompt: Stringify [ci skip] --- share/functions/__terlar_git_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__terlar_git_prompt.fish b/share/functions/__terlar_git_prompt.fish index 1068944fb..617ef944f 100644 --- a/share/functions/__terlar_git_prompt.fish +++ b/share/functions/__terlar_git_prompt.fish @@ -46,7 +46,7 @@ function __terlar_git_prompt --description 'Write out the git prompt' set -l staged for i in $index - if echo $i | grep '^[AMRCD]' >/dev/null + if string match -rq '^[AMRCD]' -- $i set staged 1 end