summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/_tide_1_line_prompt.fish
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions/_tide_1_line_prompt.fish')
-rw-r--r--home-config/fish/functions/_tide_1_line_prompt.fish19
1 files changed, 19 insertions, 0 deletions
diff --git a/home-config/fish/functions/_tide_1_line_prompt.fish b/home-config/fish/functions/_tide_1_line_prompt.fish
new file mode 100644
index 0000000..5772223
--- /dev/null
+++ b/home-config/fish/functions/_tide_1_line_prompt.fish
@@ -0,0 +1,19 @@
1function _tide_1_line_prompt
2 set -g add_prefix
3 _tide_side=left for item in $_tide_left_items
4 _tide_item_$item
5 end
6 set_color $prev_bg_color -b normal
7 echo $tide_left_prompt_suffix
8
9 set -g add_prefix
10 _tide_side=right for item in $_tide_right_items
11 _tide_item_$item
12 end
13 set_color $prev_bg_color -b normal
14 echo $tide_right_prompt_suffix
15end
16
17function _tide_item_pwd
18 _tide_print_item pwd @PWD@
19end