tide/lean_theme/fish_prompt.fish

16 lines
330 B
Fish
Raw Normal View History

2020-04-03 01:39:10 +03:00
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
echo
echo (lean_pwd)(lean_git_prompt)
# Prompt character
if test $last_status -eq 0
set_color $lean_green
2020-04-03 01:39:10 +03:00
else
set_color $fish_color_error
end
2020-04-11 20:45:49 +03:00
echo -n " "
2020-04-03 01:39:10 +03:00
set_color $fish_color_normal
end