2020-11-21 01:04:04 +03:00
|
|
|
function _tide_prompt
|
2020-11-25 01:39:56 +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 03:39:25 +03:00
|
|
|
test -z "$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'
|
|
|
|
|
2020-11-24 01:56:52 +03:00
|
|
|
set -g _tide_left_prompt_height (math 1+(string match --all 'newline' $tide_left_prompt_items | count))
|
|
|
|
|
2020-11-21 01:04:04 +03:00
|
|
|
_tide_right_prompt
|
|
|
|
_tide_left_prompt
|
|
|
|
end
|