feat(Nushell): improve prompt rendering

This commit is contained in:
2026-05-29 22:11:03 +08:00
parent fdacaab656
commit b8c94de6c6
+2 -2
View File
@@ -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) {