From 1eed371c3e664ce933e6e380ccf83bcf7332603e Mon Sep 17 00:00:00 2001 From: jstmax! <87650746+jstmaxlol@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:17:33 +0100 Subject: Create fish_right_prompt.fish --- towget/fish_right_prompt.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 towget/fish_right_prompt.fish (limited to 'towget') diff --git a/towget/fish_right_prompt.fish b/towget/fish_right_prompt.fish new file mode 100644 index 0000000..cb10121 --- /dev/null +++ b/towget/fish_right_prompt.fish @@ -0,0 +1,11 @@ +function fish_right_prompt + set last_status $status + + # check for which color to use + if test $last_status -eq 0 + set color green + else + set color red + end + echo -e (set_color $color)"[$last_status]" +end -- cgit v1.3.1