From 8600374371f91843064441113f4023cda1730877 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 18 Mar 2023 16:40:57 -0300 Subject: General fish fixes and updates --- .config/fish/functions/_tide_1_line_prompt.fish | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/fish/functions/_tide_1_line_prompt.fish (limited to '.config/fish/functions/_tide_1_line_prompt.fish') diff --git a/.config/fish/functions/_tide_1_line_prompt.fish b/.config/fish/functions/_tide_1_line_prompt.fish new file mode 100644 index 00000000..57722237 --- /dev/null +++ b/.config/fish/functions/_tide_1_line_prompt.fish @@ -0,0 +1,19 @@ +function _tide_1_line_prompt + set -g add_prefix + _tide_side=left for item in $_tide_left_items + _tide_item_$item + end + set_color $prev_bg_color -b normal + echo $tide_left_prompt_suffix + + set -g add_prefix + _tide_side=right for item in $_tide_right_items + _tide_item_$item + end + set_color $prev_bg_color -b normal + echo $tide_right_prompt_suffix +end + +function _tide_item_pwd + _tide_print_item pwd @PWD@ +end -- cgit v1.2.3