mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:45:25 +08:00
functions/__terlar_git_prompt: Stringify
[ci skip]
This commit is contained in:
parent
0640e7bae9
commit
b8fd08811c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user