feat(Nushell): improve prompt rendering
This commit is contained in:
@@ -354,10 +354,10 @@ def _pj_git_branch_module [p: record] {
|
||||
$status_parts = ($status_parts | append $"($p.c_alert)\$($git.stashed)($p.c_reset)")
|
||||
}
|
||||
if (($git.ahead | default 0) > 0) {
|
||||
$status_parts = ($status_parts | append $"($p.c_git)⇡($git.ahead)($p.c_reset)")
|
||||
$status_parts = ($status_parts | append $"($p.c_alert)⇡($git.ahead)($p.c_reset)")
|
||||
}
|
||||
if (($git.behind | default 0) > 0) {
|
||||
$status_parts = ($status_parts | append $"($p.c_git)⇣($git.behind)($p.c_reset)")
|
||||
$status_parts = ($status_parts | append $"($p.c_alert)⇣($git.behind)($p.c_reset)")
|
||||
}
|
||||
|
||||
let git_status = if (($status_parts | length) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user