tide/functions/_tide_right_prompt.fish
2021-04-24 17:42:12 -07:00

21 lines
616 B
Fish

function _tide_right_prompt
set -g _tide_which_side_working_on right
for item in $tide_right_prompt_items
if test "$item" = newline
set_color $previousColor -b normal
printf '%s' $tide_right_prompt_suffix\n
set -g tide_last_item newline
else
_tide_item_$item
end
end
if test "$tide_last_item" != newline -a "$tide_last_item" != character
set_color $tide_previous_bg_color -b normal
printf '%s' $tide_right_prompt_suffix
end
set_color normal # Make sure there is something printed on the last line
end