mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 01:13:13 +03:00
fb22b3bec9
* Set color to normal at end of prompt char * move `set_color normal` to _tide_prompt
16 lines
557 B
Fish
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
|