From 060903128d1658e2176ecdbfc8676b3f216d0ff5 Mon Sep 17 00:00:00 2001 From: Max Brown <40207129+Euphrasiologist@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:09:56 +0000 Subject: [PATCH] Adding the `A` case (#688) I'm handling the add 'A' case here, otherwise we get a null and the pipeline breaks. --- modules/prompt/basic-git.nu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/prompt/basic-git.nu b/modules/prompt/basic-git.nu index ffd6d930..1d79840a 100644 --- a/modules/prompt/basic-git.nu +++ b/modules/prompt/basic-git.nu @@ -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 {