tide/functions/_tide_prompt.fish
Peng Guanwen fb22b3bec9
Set color to normal at end of prompt (#63)
* Set color to normal at end of prompt char

* move `set_color normal` to _tide_prompt
2020-12-31 20:14:55 -08:00

16 lines
557 B
Fish

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)
test "$tide_print_newline_before_prompt" = 'true' && printf '%b' '\n'
set_color $tide_prompt_connection_color
test -n "$tide_prompt_connection_icon" || set -l tide_prompt_connection_icon ' '
string repeat --no-newline --max $COLUMNS $tide_prompt_connection_icon
printf '%b' '\r'
_tide_right_prompt
_tide_left_prompt
set_color normal
end