mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-17 09:20:28 +03:00
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:
parent
725b92b254
commit
060903128d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user