summaryrefslogtreecommitdiff
path: root/towget
diff options
context:
space:
mode:
authorjstmax! <87650746+jstmaxlol@users.noreply.github.com>2024-12-11 21:17:33 +0100
committerGitHub <noreply@github.com>2024-12-11 21:17:33 +0100
commit1eed371c3e664ce933e6e380ccf83bcf7332603e (patch)
treebf7bab25562678397cf71e10456dcc4cff8fe1c8 /towget
parentaa05c8930d7918ba42e14b49ec2a2b74de27f232 (diff)
Create fish_right_prompt.fish
Diffstat (limited to 'towget')
-rw-r--r--towget/fish_right_prompt.fish11
1 files changed, 11 insertions, 0 deletions
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