summaryrefslogtreecommitdiff
path: root/fish/functions/fish_right_prompt.fish
diff options
context:
space:
mode:
authortslil clingman <>2019-09-11 19:18:14 -0400
committertslil clingman <>2019-09-11 19:18:14 -0400
commitac1a4884d03fc0495c773500d8a13f84b695fa43 (patch)
tree29e5ec49e0ce957d80d8f11a155b47840c74f488 /fish/functions/fish_right_prompt.fish
Init
Diffstat (limited to 'fish/functions/fish_right_prompt.fish')
-rw-r--r--fish/functions/fish_right_prompt.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish
new file mode 100644
index 0000000..800203c
--- /dev/null
+++ b/fish/functions/fish_right_prompt.fish
@@ -0,0 +1,8 @@
+function fish_right_prompt
+ set -l fail $status
+
+ if [ $fail != 0 ];
+ set_color red;
+ echo -ne "<$fail>";
+ end;
+end