mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-25 21:12:48 +03:00
16 lines
330 B
Fish
16 lines
330 B
Fish
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
|
||
else
|
||
set_color $fish_color_error
|
||
end
|
||
echo -n "❯ "
|
||
set_color $fish_color_normal
|
||
end
|