functions/__terlar_git_prompt: Stringify

[ci skip]
This commit is contained in:
Fabian Homborg 2019-01-26 19:19:24 +01:00
parent 0640e7bae9
commit b8fd08811c

View file

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