diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
commit | b88d77fb2d0d5028a6f5670695dee6bec129501f (patch) | |
tree | 2536b0461d297e647cf07157641c9b1223339adf /home-config/fish/functions/_tide_2_line_prompt.fish | |
parent | 776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff) |
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/_tide_2_line_prompt.fish')
-rw-r--r-- | home-config/fish/functions/_tide_2_line_prompt.fish | 31 |
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 @@ | |||
1 | function _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 | ||
21 | end | ||
22 | |||
23 | function _tide_item_pwd | ||
24 | _tide_print_item pwd @PWD@ | ||
25 | end | ||
26 | |||
27 | function _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 | ||
31 | end | ||