[fish] detect simultaneously unstaged and staged files in git prompt
This commit is contained in:
parent
b53eb9327b
commit
cf6ad12834
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ function __plaid_git_prompt --description 'Write out the git prompt'
|
||||||
if echo $i | grep '^[AMRCD]' >/dev/null
|
if echo $i | grep '^[AMRCD]' >/dev/null
|
||||||
set -a gs staged
|
set -a gs staged
|
||||||
end
|
end
|
||||||
if echo $i | grep '^ [AMRCD]' >/dev/null
|
if echo $i | grep '^.\?[AMRCD]' >/dev/null
|
||||||
set -a gs unstaged
|
set -a gs unstaged
|
||||||
end
|
end
|
||||||
if echo $i | grep '^??' >/dev/null
|
if echo $i | grep '^??' >/dev/null
|
||||||
|
|
Loading…
Reference in a new issue