aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-27 21:31:56 -0800
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-27 21:31:56 -0800
commitf758739c39ecb22e53a30316ffe99c05cf4a259d (patch)
treeeca0ffa285d63d500154814d06f743c77340fb25
parenta4d12c638fa044e2bb523c1feed04bcd3899f458 (diff)
downloaddotfiles-f758739c39ecb22e53a30316ffe99c05cf4a259d.tar
dotfiles-f758739c39ecb22e53a30316ffe99c05cf4a259d.tar.gz
dotfiles-f758739c39ecb22e53a30316ffe99c05cf4a259d.tar.bz2
dotfiles-f758739c39ecb22e53a30316ffe99c05cf4a259d.zip
feat(fish): red for non-zero status
-rw-r--r--fish/.config/fish/functions/fish_prompt.fish6
1 files changed, 5 insertions, 1 deletions
diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish
index 2589634..e14dd3a 100644
--- a/fish/.config/fish/functions/fish_prompt.fish
+++ b/fish/.config/fish/functions/fish_prompt.fish
@@ -11,7 +11,11 @@ function fish_prompt --description 'Write out the prompt'
end
set suffix '#'
case '*'
- set color_cwd $fish_color_cwd
+ if [ $last_status != 0 ]
+ set color_cwd red
+ else
+ set color_cwd $fish_color_cwd
+ end
set suffix '>'
end