summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/_tide_2_line_prompt.fish
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions/_tide_2_line_prompt.fish')
-rw-r--r--home-config/fish/functions/_tide_2_line_prompt.fish31
1 files changed, 31 insertions, 0 deletions
diff --git a/home-config/fish/functions/_tide_2_line_prompt.fish b/home-config/fish/functions/_tide_2_line_prompt.fish
new file mode 100644
index 0000000..e9017af
--- /dev/null
+++ b/home-config/fish/functions/_tide_2_line_prompt.fish
@@ -0,0 +1,31 @@
1function _tide_2_line_prompt
2 set -g add_prefix
3 _tide_side=left for item in $_tide_left_items
4 _tide_item_$item
5 end
6 if not set -e add_prefix
7 set_color $prev_bg_color -b normal
8 echo $tide_left_prompt_suffix
9 end
10
11 echo
12
13 set -g add_prefix
14 _tide_side=right for item in $_tide_right_items
15 _tide_item_$item
16 end
17 if not set -e add_prefix
18 set_color $prev_bg_color -b normal
19 echo $tide_right_prompt_suffix
20 end
21end
22
23function _tide_item_pwd
24 _tide_print_item pwd @PWD@
25end
26
27function _tide_item_newline
28 set_color $prev_bg_color -b normal
29 v=tide_"$_tide_side"_prompt_suffix echo $$v
30 set -g add_prefix
31end