tide/functions/_tide_1_line_prompt.fish

20 lines
453 B
Fish
Raw Normal View History

2021-12-08 20:21:12 +03:00
function _tide_1_line_prompt
set -g add_prefix
2022-01-09 22:13:36 +03:00
_tide_side=left for item in $_tide_left_items
2022-01-03 22:01:06 +03:00
_tide_item_$item
end
set_color $prev_bg_color -b normal
2022-01-09 22:13:36 +03:00
echo $tide_left_prompt_suffix
2021-12-08 20:21:12 +03:00
set -g add_prefix
2022-01-09 22:13:36 +03:00
_tide_side=right for item in $_tide_right_items
2022-01-03 22:01:06 +03:00
_tide_item_$item
end
set_color $prev_bg_color -b normal
2022-01-09 22:13:36 +03:00
echo $tide_right_prompt_suffix
2021-12-08 20:21:12 +03:00
end
function _tide_item_pwd
_tide_print_item pwd @PWD@
end