[fish] Fix git prompt bug

This commit is contained in:
lhark 2019-04-03 00:36:08 -04:00
parent aacda3c3c7
commit d41f489ea6

View file

@ -56,7 +56,7 @@ function __plaid_git_prompt --description 'Write out the git prompt'
if echo $i | grep '^[AMRCD]' >/dev/null
set -a gs staged
end
if echo $i | grep '^.\?[AMRCD]' >/dev/null
if echo $i | grep '^.\{1\}[AMRCD]' >/dev/null
set -a gs unstaged
end
if echo $i | grep '^??' >/dev/null