mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07: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
|
| uniq -c
|
||||||
| insert type {
|
| insert type {
|
||||||
|e| if ($e.value | str contains "M") {
|
|e| if ($e.value | str contains "M") {
|
||||||
"blue"
|
"blue_bold"
|
||||||
} else if ($e.value | str contains "??") {
|
} else if ($e.value | str contains "??") {
|
||||||
"yellow_bold"
|
"yellow_bold"
|
||||||
} else if ($e.value | str contains "D") {
|
} else if ($e.value | str contains "D") {
|
||||||
"red_bold"
|
"red_bold"
|
||||||
|
} else if ($e.value | str contains "A") {
|
||||||
|
"cyan_bold"
|
||||||
} else ""
|
} else ""
|
||||||
}
|
}
|
||||||
| each {
|
| each {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue