mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-09 21:41:41 +03:00
24 lines
462 B
Fish
24 lines
462 B
Fish
function _tide_2_line_prompt
|
|
set -g add_prefix
|
|
_tide_side=left for item in $_tide_left_items
|
|
_tide_item_$item
|
|
end
|
|
|
|
echo
|
|
|
|
set -g add_prefix
|
|
_tide_side=right for item in $_tide_right_items
|
|
_tide_item_$item
|
|
end
|
|
end
|
|
|
|
function _tide_item_pwd
|
|
_tide_print_item pwd @PWD@
|
|
end
|
|
|
|
function _tide_item_newline
|
|
set_color $prev_bg_color -b normal
|
|
var=tide_"$_tide_side"_prompt_suffix echo $$var
|
|
set -g add_prefix
|
|
end
|