oh-my-fish/themes/scorphish/fish_right_prompt.fish
Pablo Santiago Blum de Aguiar 17a807f5bf themes: add a new theme, scorphish
2015-05-02 23:37:33 -03:00

14 lines
259 B
Fish

function fish_right_prompt
set -l exit_code $status
if test $exit_code -ne 0
set_color red
else
set_color green
end
printf '%d' $exit_code
set_color -o 666
echo '|'
set_color -o 777
printf '%s' (date +%H:%M:%S)
set_color normal
end