Author: Kyle Fuller <kyle@fuller.li> 2015-10-09 20:39:35 -0700 -0700
Committer: Kyle Fuller <kyle@fuller.li> 2015-10-09 20:39:35 -0700 -0700
Commit: 794ff1d20e5561bcfa186fa7195ebe23cb8ca95b
Parent: 2b3a5b455d69f98c5f381078d9212f59878aa165
[fish] Show $ in red on failure
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish
index 61cc75a5d53766323933a7c44dbf12d807e2e749..0ab1293f39675c9c7fe07e70c6459a2ed80dc2a4 100644
--- a/.config/fish/functions/fish_prompt.fish
+++ b/.config/fish/functions/fish_prompt.fish
@@ -1,5 +1,7 @@
function fish_prompt
- if test -n "$SSH_TTY"
+ if not test $status -eq 0
+ set_color $fish_color_error
+ else if test -n "$SSH_TTY"
set_color FF69B4
else
set_color $fish_color_cwd