2020-11-21 01:04:04 +03:00
|
|
|
function _tide_prompt
|
2020-12-26 03:54:24 +03:00
|
|
|
# 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
|
|
|
|
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 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
|
2021-01-01 07:14:55 +03:00
|
|
|
set_color normal
|
|
|
|
end
|