From 42f38bb806e2f278cf28b36412e1ff5d8ae91f65 Mon Sep 17 00:00:00 2001 From: tomKPZ Date: Sat, 6 Jul 2019 21:28:48 -0700 Subject: [PATCH] Fix status code coloring for nim prompt --- share/tools/web_config/sample_prompts/nim.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/sample_prompts/nim.fish b/share/tools/web_config/sample_prompts/nim.fish index a6a886580..95aaab56e 100644 --- a/share/tools/web_config/sample_prompts/nim.fish +++ b/share/tools/web_config/sample_prompts/nim.fish @@ -24,6 +24,9 @@ function fish_prompt # │ 1 15048 0% arrêtée sleep 100000 # ╰─>$ echo there + set -l retc red + test $status = 0; and set retc green + set -q __fish_git_prompt_showupstream or set -g __fish_git_prompt_showupstream auto @@ -45,8 +48,6 @@ function fish_prompt set_color -o green echo -n ']' end - and set retc green - or set retc red set_color $retc echo -n '┬─'