From cf6ad1283410868db631bf77293ee79184361fb8 Mon Sep 17 00:00:00 2001 From: lhark Date: Sat, 9 Mar 2019 11:47:10 -0500 Subject: [PATCH] [fish] detect simultaneously unstaged and staged files in git prompt --- 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 0193777..dab3c4f 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 '^.\?[AMRCD]' >/dev/null set -a gs unstaged end if echo $i | grep '^??' >/dev/null