mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-25 04:53:11 +03:00
21 lines
616 B
Fish
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
|