Adding the A case (#688)

I'm handling the add 'A' case here, otherwise we get a null and the
pipeline breaks.
This commit is contained in:
Max Brown 2023-12-07 17:09:56 +00:00 committed by GitHub
parent 725b92b254
commit 060903128d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,13 @@ export def basic-git-left-prompt [in_left_prompt] {
| uniq -c
| insert type {
|e| if ($e.value | str contains "M") {
"blue"
"blue_bold"
} else if ($e.value | str contains "??") {
"yellow_bold"
} else if ($e.value | str contains "D") {
"red_bold"
} else if ($e.value | str contains "A") {
"cyan_bold"
} else ""
}
| each {