Commit ff0c6b12 authored by Jorge Bucaran's avatar Jorge Bucaran
Browse files

cleareance theme should display red prompt if status != 0

parent 8bf8cd06
......@@ -14,6 +14,8 @@ function _git_is_dirty
end
function fish_prompt
set -l last_status $status
set -l cyan (set_color cyan)
set -l yellow (set_color yellow)
set -l red (set_color red)
......@@ -48,7 +50,12 @@ function fish_prompt
echo -n -s ' · ' $git_info $normal
end
set -l prompt_color $red
if test $last_status = 0
set prompt_color $normal
end
# Terminate with a nice prompt char
echo -e ''
echo -e -n -s '⟩ ' $normal
echo -e -n -s $prompt_color '⟩ ' $normal
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment