From d41f489ea61966c381aaa95c5b0c7ee49d5ef79e Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 3 Apr 2019 00:36:08 -0400 Subject: [PATCH] [fish] Fix git prompt bug --- config/fish/functions/__plaid_git_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/fish/functions/__plaid_git_prompt.fish b/config/fish/functions/__plaid_git_prompt.fish index dab3c4f..95e83ea 100644 --- a/config/fish/functions/__plaid_git_prompt.fish +++ b/config/fish/functions/__plaid_git_prompt.fish @@ -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