mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue