tide/functions/_tide_prompt.fish

16 lines
557 B
Fish
Raw Normal View History

2020-11-21 01:04:04 +03:00
function _tide_prompt
# Variables are exported as strings, convert _tide_last_pipestatus back into a list
set -g _tide_last_pipestatus (string split ' ' $_tide_last_pipestatus)
2020-12-26 19:42:21 +03:00
test "$tide_print_newline_before_prompt" = 'true' && printf '%b' '\n'
2020-11-21 01:04:04 +03:00
set_color $tide_prompt_connection_color
2020-11-25 07:20:39 +03:00
test -n "$tide_prompt_connection_icon" || set -l tide_prompt_connection_icon ' '
2020-11-21 01:04:04 +03:00
string repeat --no-newline --max $COLUMNS $tide_prompt_connection_icon
printf '%b' '\r'
_tide_right_prompt
_tide_left_prompt
set_color normal
end