tide/functions/fish_prompt.fish

20 lines
456 B
Fish
Raw Normal View History

2020-05-04 07:41:08 +03:00
# Created by lean configure
function fish_prompt --description 'Write out the prompt'
2020-04-29 22:32:59 +03:00
set -g last_pipestatus $pipestatus
set -g last_status $status
2020-05-15 07:53:37 +03:00
if test "$lean_newline" = 'true'
2020-05-18 20:06:02 +03:00
printf '%b' '\n'
2020-05-15 07:53:37 +03:00
end
set_color $lean_prompt_connection_color
printf "%.s$lean_prompt_connection_icon" (seq $COLUMNS)
set_color $fish_color_normal
2020-05-18 20:06:02 +03:00
printf '%b' '\r'
2020-05-15 07:53:37 +03:00
lean_right_prompt
2020-04-25 22:21:09 +03:00
2020-05-18 20:06:02 +03:00
printf '%b' '\r'
2020-05-15 07:53:37 +03:00
lean_left_prompt
end