diff options
Diffstat (limited to 'home-config/fish/functions/tide/configure')
34 files changed, 1376 insertions, 0 deletions
diff --git a/home-config/fish/functions/tide/configure/choices/all/finish.fish b/home-config/fish/functions/tide/configure/choices/all/finish.fish new file mode 100644 index 0000000..f670b1e --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/finish.fish | |||
@@ -0,0 +1,46 @@ | |||
1 | function finish | ||
2 | _tide_title Finish | ||
3 | |||
4 | echo | ||
5 | set_color red | ||
6 | _tide_option y 'Overwrite your current tide config' | ||
7 | set_color normal | ||
8 | echo | ||
9 | |||
10 | _tide_option p 'Exit and print the config you just generated' | ||
11 | echo | ||
12 | |||
13 | _tide_menu (status function) | ||
14 | switch $_tide_selected_option | ||
15 | case 'Overwrite your current tide config' | ||
16 | _tide_finish | ||
17 | command -q clear && clear | ||
18 | set -q _flag_auto || _tide_print_configure_current_options | ||
19 | case 'Exit and print the config you just generated' | ||
20 | _tide_exit_configure | ||
21 | command -q clear && clear | ||
22 | _tide_print_configure_current_options | ||
23 | end | ||
24 | end | ||
25 | |||
26 | function _tide_finish | ||
27 | _tide_exit_configure | ||
28 | |||
29 | # Deal with prompt char/vi mode | ||
30 | contains character $fake_tide_left_prompt_items || set -p fake_tide_left_prompt_items vi_mode | ||
31 | |||
32 | # Set the real variables | ||
33 | for fakeVar in (set --names | string match -r "^fake_tide.*") | ||
34 | set -U (string replace 'fake_' '' $fakeVar) $$fakeVar | ||
35 | end | ||
36 | |||
37 | # Make sure old prompt won't display | ||
38 | set -e $_tide_prompt_var 2>/dev/null | ||
39 | |||
40 | # Re-initialize the prompt | ||
41 | tide reload | ||
42 | end | ||
43 | |||
44 | function _tide_print_configure_current_options | ||
45 | _tide_fish_colorize "tide configure --auto $_tide_configure_current_options" | ||
46 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/icons.fish b/home-config/fish/functions/tide/configure/choices/all/icons.fish new file mode 100644 index 0000000..be167bb --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/icons.fish | |||
@@ -0,0 +1,33 @@ | |||
1 | function icons | ||
2 | _tide_title Icons | ||
3 | |||
4 | _tide_option 1 'Few icons' | ||
5 | _tide_display_prompt | ||
6 | |||
7 | _tide_option 2 'Many icons' | ||
8 | _enable_icons | ||
9 | _tide_display_prompt | ||
10 | |||
11 | _tide_menu (status function) | ||
12 | switch $_tide_selected_option | ||
13 | case 'Few icons' | ||
14 | _disable_icons | ||
15 | end | ||
16 | _next_choice all/transient | ||
17 | end | ||
18 | |||
19 | function _enable_icons | ||
20 | set -p fake_tide_left_prompt_items os | ||
21 | set -g fake_tide_pwd_icon | ||
22 | set -g fake_tide_pwd_icon_home | ||
23 | set -g fake_tide_cmd_duration_icon | ||
24 | set -g fake_tide_git_icon | ||
25 | end | ||
26 | |||
27 | function _disable_icons | ||
28 | _tide_find_and_remove os fake_tide_left_prompt_items | ||
29 | set fake_tide_pwd_icon | ||
30 | set fake_tide_pwd_icon_home | ||
31 | set fake_tide_cmd_duration_icon | ||
32 | set fake_tide_git_icon | ||
33 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/prompt_colors.fish b/home-config/fish/functions/tide/configure/choices/all/prompt_colors.fish new file mode 100644 index 0000000..247ef4e --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/prompt_colors.fish | |||
@@ -0,0 +1,26 @@ | |||
1 | function prompt_colors | ||
2 | _tide_title 'Prompt Colors' | ||
3 | |||
4 | _tide_option 1 'True color' | ||
5 | _tide_display_prompt | ||
6 | |||
7 | _tide_option 2 '16 colors' | ||
8 | _load_config "$_tide_configure_style"_16color | ||
9 | set -g _tide_16color true | ||
10 | _tide_display_prompt | ||
11 | |||
12 | _tide_menu (status function) | ||
13 | switch $_tide_selected_option | ||
14 | case 'True color' | ||
15 | _load_config "$_tide_configure_style" | ||
16 | set -e _tide_16color | ||
17 | switch $_tide_configure_style | ||
18 | case lean rainbow | ||
19 | _next_choice all/show_time | ||
20 | case classic | ||
21 | _next_choice classic/classic_prompt_color | ||
22 | end | ||
23 | case '16 colors' | ||
24 | _next_choice all/show_time | ||
25 | end | ||
26 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish b/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish new file mode 100644 index 0000000..ff76546 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish | |||
@@ -0,0 +1,31 @@ | |||
1 | function prompt_connection | ||
2 | _tide_title 'Prompt Connection' | ||
3 | |||
4 | _tide_option 1 Disconnected | ||
5 | set -g fake_tide_prompt_icon_connection ' ' | ||
6 | _tide_display_prompt | ||
7 | |||
8 | _tide_option 2 Dotted | ||
9 | set -g fake_tide_prompt_icon_connection '·' | ||
10 | _tide_display_prompt | ||
11 | |||
12 | _tide_option 3 Solid | ||
13 | set -g fake_tide_prompt_icon_connection '─' | ||
14 | _tide_display_prompt | ||
15 | |||
16 | _tide_menu (status function) | ||
17 | switch $_tide_selected_option | ||
18 | case Disconnected | ||
19 | set -g fake_tide_prompt_icon_connection ' ' | ||
20 | case Dotted | ||
21 | set -g fake_tide_prompt_icon_connection '·' | ||
22 | case Solid | ||
23 | set -g fake_tide_prompt_icon_connection '─' | ||
24 | end | ||
25 | switch $_tide_configure_style | ||
26 | case lean | ||
27 | _next_choice all/prompt_connection_andor_frame_color | ||
28 | case classic rainbow | ||
29 | _next_choice powerline/powerline_right_prompt_frame | ||
30 | end | ||
31 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/prompt_connection_andor_frame_color.fish b/home-config/fish/functions/tide/configure/choices/all/prompt_connection_andor_frame_color.fish new file mode 100644 index 0000000..cefbf2c --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/prompt_connection_andor_frame_color.fish | |||
@@ -0,0 +1,40 @@ | |||
1 | function prompt_connection_andor_frame_color | ||
2 | if test "$_tide_16color" = true || | ||
3 | test "$fake_tide_left_prompt_frame_enabled" = false -a \ | ||
4 | "$fake_tide_right_prompt_frame_enabled" = false -a \ | ||
5 | "$fake_tide_prompt_icon_connection" = ' ' | ||
6 | _next_choice all/prompt_spacing | ||
7 | return 0 | ||
8 | end | ||
9 | |||
10 | _tide_title "Connection & Frame Color" | ||
11 | |||
12 | _tide_option 1 Lightest | ||
13 | set -g fake_tide_prompt_color_frame_and_connection 808080 | ||
14 | _tide_display_prompt | ||
15 | |||
16 | _tide_option 2 Light | ||
17 | set -g fake_tide_prompt_color_frame_and_connection 6C6C6C | ||
18 | _tide_display_prompt | ||
19 | |||
20 | _tide_option 3 Dark | ||
21 | set -g fake_tide_prompt_color_frame_and_connection 585858 | ||
22 | _tide_display_prompt | ||
23 | |||
24 | _tide_option 4 Darkest | ||
25 | set -g fake_tide_prompt_color_frame_and_connection 444444 | ||
26 | _tide_display_prompt | ||
27 | |||
28 | _tide_menu (status function) | ||
29 | switch $_tide_selected_option | ||
30 | case Lightest | ||
31 | set -g fake_tide_prompt_color_frame_and_connection 808080 | ||
32 | case Light | ||
33 | set -g fake_tide_prompt_color_frame_and_connection 6C6C6C | ||
34 | case Dark | ||
35 | set -g fake_tide_prompt_color_frame_and_connection 585858 | ||
36 | case Darkest | ||
37 | set -g fake_tide_prompt_color_frame_and_connection 444444 | ||
38 | end | ||
39 | _next_choice all/prompt_spacing | ||
40 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/prompt_spacing.fish b/home-config/fish/functions/tide/configure/choices/all/prompt_spacing.fish new file mode 100644 index 0000000..f68be68 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/prompt_spacing.fish | |||
@@ -0,0 +1,22 @@ | |||
1 | function prompt_spacing | ||
2 | _tide_title 'Prompt Spacing' | ||
3 | |||
4 | _tide_option 1 Compact | ||
5 | set -g fake_tide_prompt_add_newline_before false | ||
6 | _tide_display_prompt | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Sparse | ||
10 | set -g fake_tide_prompt_add_newline_before true | ||
11 | _tide_display_prompt | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_menu (status function) | ||
15 | switch $_tide_selected_option | ||
16 | case Compact | ||
17 | set -g fake_tide_prompt_add_newline_before false | ||
18 | case Sparse | ||
19 | set -g fake_tide_prompt_add_newline_before true | ||
20 | end | ||
21 | _next_choice all/icons | ||
22 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/show_time.fish b/home-config/fish/functions/tide/configure/choices/all/show_time.fish new file mode 100644 index 0000000..b66c785 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/show_time.fish | |||
@@ -0,0 +1,33 @@ | |||
1 | function show_time | ||
2 | _tide_title 'Show current time?' | ||
3 | |||
4 | _tide_option 1 No | ||
5 | _tide_display_prompt | ||
6 | |||
7 | set -a fake_tide_right_prompt_items time | ||
8 | |||
9 | _tide_option 2 '24-hour format' | ||
10 | set -g fake_tide_time_format %T | ||
11 | _tide_display_prompt | ||
12 | |||
13 | _tide_option 3 '12-hour format' | ||
14 | set -g fake_tide_time_format %r | ||
15 | _tide_display_prompt | ||
16 | |||
17 | _tide_menu (status function) | ||
18 | switch $_tide_selected_option | ||
19 | case No | ||
20 | set -g fake_tide_time_format '' | ||
21 | set -e fake_tide_right_prompt_items[-1] | ||
22 | case '24-hour format' | ||
23 | set -g fake_tide_time_format %T | ||
24 | case '12-hour format' | ||
25 | set -g fake_tide_time_format %r | ||
26 | end | ||
27 | switch $_tide_configure_style | ||
28 | case lean | ||
29 | _next_choice "$_tide_configure_style"/"$_tide_configure_style"_prompt_height | ||
30 | case classic rainbow | ||
31 | _next_choice "$_tide_configure_style"/"$_tide_configure_style"_prompt_separators | ||
32 | end | ||
33 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/style.fish b/home-config/fish/functions/tide/configure/choices/all/style.fish new file mode 100644 index 0000000..fe9a58f --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/style.fish | |||
@@ -0,0 +1,36 @@ | |||
1 | function style | ||
2 | set -g _tide_configure_current_options | ||
3 | |||
4 | _tide_title 'Prompt Style' | ||
5 | |||
6 | _tide_option 1 Lean | ||
7 | _load_config lean | ||
8 | _tide_display_prompt | ||
9 | |||
10 | _tide_option 2 Classic | ||
11 | _load_config classic | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Rainbow | ||
15 | _load_config rainbow | ||
16 | _tide_display_prompt | ||
17 | |||
18 | _tide_menu (status function) --no-restart | ||
19 | switch $_tide_selected_option | ||
20 | case Lean | ||
21 | _load_config lean | ||
22 | set -g _tide_configure_style lean | ||
23 | case Classic | ||
24 | _load_config classic | ||
25 | set -g _tide_configure_style classic | ||
26 | case Rainbow | ||
27 | _load_config rainbow | ||
28 | set -g _tide_configure_style rainbow | ||
29 | end | ||
30 | _next_choice all/prompt_colors | ||
31 | end | ||
32 | |||
33 | function _load_config -a name | ||
34 | string replace -r '^' 'set -g fake_' <(status dirname)/../../icons.fish | source | ||
35 | string replace -r '^' 'set -g fake_' <(status dirname)/../../configs/$name.fish | source | ||
36 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/all/transient.fish b/home-config/fish/functions/tide/configure/choices/all/transient.fish new file mode 100644 index 0000000..df2b6b6 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/transient.fish | |||
@@ -0,0 +1,22 @@ | |||
1 | function transient | ||
2 | _tide_title 'Enable transient prompt?' | ||
3 | |||
4 | _tide_option 1 No | ||
5 | _tide_display_prompt | ||
6 | _tide_display_prompt | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Yes | ||
10 | _configure_transient= _tide_display_prompt | ||
11 | _configure_transient= _tide_display_prompt | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_menu (status function) | ||
15 | switch $_tide_selected_option | ||
16 | case No | ||
17 | set fake_tide_prompt_transient_enabled false | ||
18 | case Yes | ||
19 | set fake_tide_prompt_transient_enabled true | ||
20 | end | ||
21 | _next_choice all/finish | ||
22 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_color.fish b/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_color.fish new file mode 100644 index 0000000..77ceeaf --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_color.fish | |||
@@ -0,0 +1,38 @@ | |||
1 | function classic_prompt_color | ||
2 | _tide_title 'Prompt Color' | ||
3 | |||
4 | _tide_option 1 Lightest | ||
5 | _set_all_items_bg_color 585858 | ||
6 | _tide_display_prompt | ||
7 | |||
8 | _tide_option 2 Light | ||
9 | _set_all_items_bg_color 444444 | ||
10 | _tide_display_prompt | ||
11 | |||
12 | _tide_option 3 Dark | ||
13 | _set_all_items_bg_color 303030 | ||
14 | _tide_display_prompt | ||
15 | |||
16 | _tide_option 4 Darkest | ||
17 | _set_all_items_bg_color 1C1C1C | ||
18 | _tide_display_prompt | ||
19 | |||
20 | _tide_menu (status function) | ||
21 | switch $_tide_selected_option | ||
22 | case Lightest | ||
23 | _set_all_items_bg_color 585858 | ||
24 | case Light | ||
25 | _set_all_items_bg_color 444444 | ||
26 | case Dark | ||
27 | _set_all_items_bg_color 303030 | ||
28 | case Darkest | ||
29 | _set_all_items_bg_color 1C1C1C | ||
30 | end | ||
31 | _next_choice all/show_time | ||
32 | end | ||
33 | |||
34 | function _set_all_items_bg_color -a color | ||
35 | for var in (set --names | string match -r "fake_.*_bg_color.*") | ||
36 | set $var $color | ||
37 | end | ||
38 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_separators.fish b/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_separators.fish new file mode 100644 index 0000000..20af6cd --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/classic/classic_prompt_separators.fish | |||
@@ -0,0 +1,40 @@ | |||
1 | function classic_prompt_separators | ||
2 | _tide_title 'Prompt Separators' | ||
3 | |||
4 | _tide_option 1 Angled | ||
5 | set -g fake_tide_left_prompt_separator_same_color | ||
6 | set -g fake_tide_right_prompt_separator_same_color | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Vertical | ||
10 | set -g fake_tide_left_prompt_separator_same_color │ | ||
11 | set -g fake_tide_right_prompt_separator_same_color │ | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Slanted | ||
15 | set -g fake_tide_left_prompt_separator_same_color ╱ | ||
16 | set -g fake_tide_right_prompt_separator_same_color ╱ | ||
17 | _tide_display_prompt | ||
18 | |||
19 | _tide_option 4 Round | ||
20 | set -g fake_tide_left_prompt_separator_same_color | ||
21 | set -g fake_tide_right_prompt_separator_same_color | ||
22 | _tide_display_prompt | ||
23 | |||
24 | _tide_menu (status function) | ||
25 | switch $_tide_selected_option | ||
26 | case Angled | ||
27 | set -g fake_tide_left_prompt_separator_same_color | ||
28 | set -g fake_tide_right_prompt_separator_same_color | ||
29 | case Vertical | ||
30 | set -g fake_tide_left_prompt_separator_same_color │ | ||
31 | set -g fake_tide_right_prompt_separator_same_color │ | ||
32 | case Slanted | ||
33 | set -g fake_tide_left_prompt_separator_same_color ╱ | ||
34 | set -g fake_tide_right_prompt_separator_same_color ╱ | ||
35 | case Round | ||
36 | set -g fake_tide_left_prompt_separator_same_color | ||
37 | set -g fake_tide_right_prompt_separator_same_color | ||
38 | end | ||
39 | _next_choice powerline/powerline_prompt_heads | ||
40 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish b/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish new file mode 100644 index 0000000..2077241 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish | |||
@@ -0,0 +1,26 @@ | |||
1 | function lean_prompt_height | ||
2 | _tide_title 'Prompt Height' | ||
3 | |||
4 | _tide_option 1 'One line' | ||
5 | _tide_find_and_remove newline fake_tide_left_prompt_items | ||
6 | set -g fake_tide_left_prompt_suffix '' | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 'Two lines' | ||
10 | set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1] | ||
11 | set -g fake_tide_left_prompt_suffix ' ' | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_menu (status function) | ||
15 | switch $_tide_selected_option | ||
16 | case 'One line' | ||
17 | _tide_find_and_remove newline fake_tide_left_prompt_items | ||
18 | set fake_tide_left_prompt_suffix '' | ||
19 | _next_choice all/prompt_connection_andor_frame_color | ||
20 | case 'Two lines' | ||
21 | _tide_find_and_remove newline fake_tide_left_prompt_items | ||
22 | set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1] | ||
23 | set -g fake_tide_left_prompt_suffix ' ' | ||
24 | _next_choice all/prompt_connection | ||
25 | end | ||
26 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish new file mode 100644 index 0000000..0030cad --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish | |||
@@ -0,0 +1,32 @@ | |||
1 | function powerline_prompt_heads | ||
2 | _tide_title 'Prompt Heads' | ||
3 | |||
4 | _tide_option 1 Sharp | ||
5 | set -g fake_tide_left_prompt_suffix | ||
6 | set -g fake_tide_right_prompt_prefix | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Slanted | ||
10 | set -g fake_tide_left_prompt_suffix | ||
11 | set -g fake_tide_right_prompt_prefix | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Round | ||
15 | set -g fake_tide_left_prompt_suffix | ||
16 | set -g fake_tide_right_prompt_prefix | ||
17 | _tide_display_prompt | ||
18 | |||
19 | _tide_menu (status function) | ||
20 | switch $_tide_selected_option | ||
21 | case Sharp | ||
22 | set -g fake_tide_left_prompt_suffix | ||
23 | set -g fake_tide_right_prompt_prefix | ||
24 | case Slanted | ||
25 | set -g fake_tide_left_prompt_suffix | ||
26 | set -g fake_tide_right_prompt_prefix | ||
27 | case Round | ||
28 | set -g fake_tide_left_prompt_suffix | ||
29 | set -g fake_tide_right_prompt_prefix | ||
30 | end | ||
31 | _next_choice powerline/powerline_prompt_tails | ||
32 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish new file mode 100644 index 0000000..b374757 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish | |||
@@ -0,0 +1,51 @@ | |||
1 | function powerline_prompt_style | ||
2 | _tide_title 'Powerline Prompt Style' | ||
3 | |||
4 | _tide_option 1 'One line' | ||
5 | _tide_find_and_remove newline fake_tide_left_prompt_items | ||
6 | _tide_find_and_remove character fake_tide_left_prompt_items | ||
7 | set fake_tide_left_prompt_frame_enabled false | ||
8 | set fake_tide_right_prompt_frame_enabled false | ||
9 | _tide_display_prompt | ||
10 | |||
11 | set -a fake_tide_left_prompt_items newline | ||
12 | |||
13 | _tide_option 2 'Two lines, character' | ||
14 | set -a fake_tide_left_prompt_items character | ||
15 | set fake_tide_left_prompt_frame_enabled false | ||
16 | set fake_tide_right_prompt_frame_enabled false | ||
17 | _tide_display_prompt | ||
18 | |||
19 | _tide_option 3 'Two lines, frame' | ||
20 | _tide_find_and_remove character fake_tide_left_prompt_items | ||
21 | set fake_tide_left_prompt_frame_enabled true | ||
22 | set fake_tide_right_prompt_frame_enabled true | ||
23 | _tide_display_prompt | ||
24 | |||
25 | _tide_option 4 'Two lines, character and frame' | ||
26 | set -a fake_tide_left_prompt_items character | ||
27 | set fake_tide_left_prompt_frame_enabled true | ||
28 | set fake_tide_right_prompt_frame_enabled true | ||
29 | _tide_display_prompt | ||
30 | |||
31 | _tide_menu (status function) | ||
32 | switch $_tide_selected_option | ||
33 | case 'One line' | ||
34 | _tide_find_and_remove newline fake_tide_left_prompt_items | ||
35 | _tide_find_and_remove character fake_tide_left_prompt_items | ||
36 | set fake_tide_left_prompt_frame_enabled false | ||
37 | set fake_tide_right_prompt_frame_enabled false | ||
38 | _next_choice all/prompt_connection_andor_frame_color | ||
39 | case 'Two lines, character' | ||
40 | set fake_tide_left_prompt_frame_enabled false | ||
41 | set fake_tide_right_prompt_frame_enabled false | ||
42 | _next_choice all/prompt_connection | ||
43 | case 'Two lines, frame' | ||
44 | _tide_find_and_remove character fake_tide_left_prompt_items | ||
45 | set fake_tide_left_prompt_frame_enabled true | ||
46 | set fake_tide_right_prompt_frame_enabled true | ||
47 | _next_choice all/prompt_connection | ||
48 | case 'Two lines, character and frame' | ||
49 | _next_choice all/prompt_connection | ||
50 | end | ||
51 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish new file mode 100644 index 0000000..6b1574b --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish | |||
@@ -0,0 +1,40 @@ | |||
1 | function powerline_prompt_tails | ||
2 | _tide_title 'Prompt Tails' | ||
3 | |||
4 | _tide_option 1 Flat | ||
5 | set -g fake_tide_left_prompt_prefix '' | ||
6 | set -g fake_tide_right_prompt_suffix '' | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Sharp | ||
10 | set -g fake_tide_left_prompt_prefix | ||
11 | set -g fake_tide_right_prompt_suffix | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Slanted | ||
15 | set -g fake_tide_left_prompt_prefix | ||
16 | set -g fake_tide_right_prompt_suffix | ||
17 | _tide_display_prompt | ||
18 | |||
19 | _tide_option 4 Round | ||
20 | set -g fake_tide_left_prompt_prefix | ||
21 | set -g fake_tide_right_prompt_suffix | ||
22 | _tide_display_prompt | ||
23 | |||
24 | _tide_menu (status function) | ||
25 | switch $_tide_selected_option | ||
26 | case Flat | ||
27 | set -g fake_tide_left_prompt_prefix '' | ||
28 | set -g fake_tide_right_prompt_suffix '' | ||
29 | case Sharp | ||
30 | set -g fake_tide_left_prompt_prefix | ||
31 | set -g fake_tide_right_prompt_suffix | ||
32 | case Slanted | ||
33 | set -g fake_tide_left_prompt_prefix | ||
34 | set -g fake_tide_right_prompt_suffix | ||
35 | case Round | ||
36 | set -g fake_tide_left_prompt_prefix | ||
37 | set -g fake_tide_right_prompt_suffix | ||
38 | end | ||
39 | _next_choice powerline/powerline_prompt_style | ||
40 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish new file mode 100644 index 0000000..a2d0a5b --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish | |||
@@ -0,0 +1,20 @@ | |||
1 | function powerline_right_prompt_frame | ||
2 | _tide_title 'Right Prompt Frame' | ||
3 | |||
4 | _tide_option 1 No | ||
5 | set fake_tide_right_prompt_frame_enabled false | ||
6 | _tide_display_prompt | ||
7 | |||
8 | _tide_option 2 Yes | ||
9 | set fake_tide_right_prompt_frame_enabled true | ||
10 | _tide_display_prompt | ||
11 | |||
12 | _tide_menu (status function) | ||
13 | switch $_tide_selected_option | ||
14 | case No | ||
15 | set fake_tide_right_prompt_frame_enabled false | ||
16 | case Yes | ||
17 | set fake_tide_right_prompt_frame_enabled true | ||
18 | end | ||
19 | _next_choice all/prompt_connection_andor_frame_color | ||
20 | end | ||
diff --git a/home-config/fish/functions/tide/configure/choices/rainbow/rainbow_prompt_separators.fish b/home-config/fish/functions/tide/configure/choices/rainbow/rainbow_prompt_separators.fish new file mode 100644 index 0000000..14b9319 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/rainbow/rainbow_prompt_separators.fish | |||
@@ -0,0 +1,40 @@ | |||
1 | function rainbow_prompt_separators | ||
2 | _tide_title 'Prompt Separators' | ||
3 | |||
4 | _tide_option 1 Angled | ||
5 | set -g fake_tide_left_prompt_separator_diff_color | ||
6 | set -g fake_tide_right_prompt_separator_diff_color | ||
7 | _tide_display_prompt | ||
8 | |||
9 | _tide_option 2 Vertical | ||
10 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
11 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Slanted | ||
15 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
16 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
17 | _tide_display_prompt | ||
18 | |||
19 | _tide_option 4 Round | ||
20 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
21 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
22 | _tide_display_prompt | ||
23 | |||
24 | _tide_menu (status function) | ||
25 | switch $_tide_selected_option | ||
26 | case Angled | ||
27 | set -g fake_tide_left_prompt_separator_diff_color | ||
28 | set -g fake_tide_right_prompt_separator_diff_color | ||
29 | case Vertical | ||
30 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
31 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
32 | case Slanted | ||
33 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
34 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
35 | case Round | ||
36 | set -g fake_tide_left_prompt_separator_diff_color '' | ||
37 | set -g fake_tide_right_prompt_separator_diff_color '' | ||
38 | end | ||
39 | _next_choice powerline/powerline_prompt_heads | ||
40 | end | ||
diff --git a/home-config/fish/functions/tide/configure/configs/classic.fish b/home-config/fish/functions/tide/configure/configs/classic.fish new file mode 100644 index 0000000..8973cbc --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/classic.fish | |||
@@ -0,0 +1,116 @@ | |||
1 | tide_aws_bg_color 444444 | ||
2 | tide_aws_color FF9900 | ||
3 | tide_character_color $_tide_color_green | ||
4 | tide_character_color_failure FF0000 | ||
5 | tide_cmd_duration_bg_color 444444 | ||
6 | tide_cmd_duration_color 87875F | ||
7 | tide_cmd_duration_decimals 0 | ||
8 | tide_cmd_duration_threshold 3000 | ||
9 | tide_context_always_display false | ||
10 | tide_context_bg_color 444444 | ||
11 | tide_context_color_default D7AF87 | ||
12 | tide_context_color_root $_tide_color_gold | ||
13 | tide_context_color_ssh D7AF87 | ||
14 | tide_context_hostname_parts 1 | ||
15 | tide_crystal_bg_color 444444 | ||
16 | tide_crystal_color FFFFFF | ||
17 | tide_direnv_bg_color 444444 | ||
18 | tide_direnv_bg_color_denied 444444 | ||
19 | tide_direnv_color $_tide_color_gold | ||
20 | tide_direnv_color_denied FF0000 | ||
21 | tide_distrobox_bg_color 444444 | ||
22 | tide_distrobox_color FF00FF | ||
23 | tide_docker_bg_color 444444 | ||
24 | tide_docker_color 2496ED | ||
25 | tide_docker_default_contexts default colima | ||
26 | tide_elixir_bg_color 444444 | ||
27 | tide_elixir_color 4E2A8E | ||
28 | tide_gcloud_bg_color 444444 | ||
29 | tide_gcloud_color 4285F4 | ||
30 | tide_git_bg_color 444444 | ||
31 | tide_git_bg_color_unstable 444444 | ||
32 | tide_git_bg_color_urgent 444444 | ||
33 | tide_git_color_branch $_tide_color_green | ||
34 | tide_git_color_conflicted FF0000 | ||
35 | tide_git_color_dirty $_tide_color_gold | ||
36 | tide_git_color_operation FF0000 | ||
37 | tide_git_color_staged $_tide_color_gold | ||
38 | tide_git_color_stash $_tide_color_green | ||
39 | tide_git_color_untracked $_tide_color_light_blue | ||
40 | tide_git_color_upstream $_tide_color_green | ||
41 | tide_git_truncation_length 24 | ||
42 | tide_git_truncation_strategy | ||
43 | tide_go_bg_color 444444 | ||
44 | tide_go_color 00ACD7 | ||
45 | tide_java_bg_color 444444 | ||
46 | tide_java_color ED8B00 | ||
47 | tide_jobs_bg_color 444444 | ||
48 | tide_jobs_color $_tide_color_dark_green | ||
49 | tide_jobs_number_threshold 1000 | ||
50 | tide_kubectl_bg_color 444444 | ||
51 | tide_kubectl_color 326CE5 | ||
52 | tide_left_prompt_frame_enabled true | ||
53 | tide_left_prompt_items pwd git newline | ||
54 | tide_left_prompt_prefix '' | ||
55 | tide_left_prompt_separator_diff_color | ||
56 | tide_left_prompt_separator_same_color | ||
57 | tide_left_prompt_suffix | ||
58 | tide_nix_shell_bg_color 444444 | ||
59 | tide_nix_shell_color 7EBAE4 | ||
60 | tide_node_bg_color 444444 | ||
61 | tide_node_color 44883E | ||
62 | tide_os_bg_color 444444 | ||
63 | tide_os_color EEEEEE | ||
64 | tide_php_bg_color 444444 | ||
65 | tide_php_color 617CBE | ||
66 | tide_private_mode_bg_color 444444 | ||
67 | tide_private_mode_color FFFFFF | ||
68 | tide_prompt_add_newline_before true | ||
69 | tide_prompt_color_frame_and_connection 6C6C6C | ||
70 | tide_prompt_color_separator_same_color 949494 | ||
71 | tide_prompt_min_cols 34 | ||
72 | tide_prompt_pad_items true | ||
73 | tide_prompt_transient_enabled false | ||
74 | tide_pulumi_bg_color 444444 | ||
75 | tide_pulumi_color F7BF2A | ||
76 | tide_pwd_bg_color 444444 | ||
77 | tide_pwd_color_anchors $_tide_color_light_blue | ||
78 | tide_pwd_color_dirs $_tide_color_dark_blue | ||
79 | tide_pwd_color_truncated_dirs 8787AF | ||
80 | tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json build.zig | ||
81 | tide_python_bg_color 444444 | ||
82 | tide_python_color 00AFAF | ||
83 | tide_right_prompt_frame_enabled true | ||
84 | tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig | ||
85 | tide_right_prompt_prefix | ||
86 | tide_right_prompt_separator_diff_color | ||
87 | tide_right_prompt_separator_same_color | ||
88 | tide_right_prompt_suffix '' | ||
89 | tide_ruby_bg_color 444444 | ||
90 | tide_ruby_color B31209 | ||
91 | tide_rustc_bg_color 444444 | ||
92 | tide_rustc_color F74C00 | ||
93 | tide_shlvl_bg_color 444444 | ||
94 | tide_shlvl_color d78700 | ||
95 | tide_shlvl_threshold 1 | ||
96 | tide_status_bg_color 444444 | ||
97 | tide_status_bg_color_failure 444444 | ||
98 | tide_status_color $_tide_color_dark_green | ||
99 | tide_status_color_failure D70000 | ||
100 | tide_terraform_bg_color 444444 | ||
101 | tide_terraform_color 844FBA | ||
102 | tide_time_bg_color 444444 | ||
103 | tide_time_color 5F8787 | ||
104 | tide_time_format %T | ||
105 | tide_toolbox_bg_color 444444 | ||
106 | tide_toolbox_color 613583 | ||
107 | tide_vi_mode_bg_color_default 444444 | ||
108 | tide_vi_mode_bg_color_insert 444444 | ||
109 | tide_vi_mode_bg_color_replace 444444 | ||
110 | tide_vi_mode_bg_color_visual 444444 | ||
111 | tide_vi_mode_color_default 949494 | ||
112 | tide_vi_mode_color_insert 87AFAF | ||
113 | tide_vi_mode_color_replace 87AF87 | ||
114 | tide_vi_mode_color_visual FF8700 | ||
115 | tide_zig_bg_color 444444 | ||
116 | tide_zig_color F7A41D | ||
diff --git a/home-config/fish/functions/tide/configure/configs/classic_16color.fish b/home-config/fish/functions/tide/configure/configs/classic_16color.fish new file mode 100644 index 0000000..670170f --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/classic_16color.fish | |||
@@ -0,0 +1,89 @@ | |||
1 | tide_aws_bg_color black | ||
2 | tide_aws_color yellow | ||
3 | tide_character_color brgreen | ||
4 | tide_character_color_failure brred | ||
5 | tide_cmd_duration_bg_color black | ||
6 | tide_cmd_duration_color brblack | ||
7 | tide_context_bg_color black | ||
8 | tide_context_color_default yellow | ||
9 | tide_context_color_root bryellow | ||
10 | tide_context_color_ssh yellow | ||
11 | tide_crystal_bg_color black | ||
12 | tide_crystal_color brwhite | ||
13 | tide_direnv_bg_color black | ||
14 | tide_direnv_bg_color_denied black | ||
15 | tide_direnv_color bryellow | ||
16 | tide_direnv_color_denied brred | ||
17 | tide_distrobox_bg_color black | ||
18 | tide_distrobox_color brmagenta | ||
19 | tide_docker_bg_color black | ||
20 | tide_docker_color blue | ||
21 | tide_elixir_bg_color black | ||
22 | tide_elixir_color magenta | ||
23 | tide_gcloud_bg_color black | ||
24 | tide_gcloud_color blue | ||
25 | tide_git_bg_color black | ||
26 | tide_git_bg_color_unstable black | ||
27 | tide_git_bg_color_urgent black | ||
28 | tide_git_color_branch brgreen | ||
29 | tide_git_color_conflicted brred | ||
30 | tide_git_color_dirty bryellow | ||
31 | tide_git_color_operation brred | ||
32 | tide_git_color_staged bryellow | ||
33 | tide_git_color_stash brgreen | ||
34 | tide_git_color_untracked brblue | ||
35 | tide_git_color_upstream brgreen | ||
36 | tide_go_bg_color black | ||
37 | tide_go_color brcyan | ||
38 | tide_java_bg_color black | ||
39 | tide_java_color yellow | ||
40 | tide_jobs_bg_color black | ||
41 | tide_jobs_color green | ||
42 | tide_kubectl_bg_color black | ||
43 | tide_kubectl_color blue | ||
44 | tide_nix_shell_bg_color black | ||
45 | tide_nix_shell_color brblue | ||
46 | tide_node_bg_color black | ||
47 | tide_node_color green | ||
48 | tide_os_bg_color black | ||
49 | tide_os_color brwhite | ||
50 | tide_php_bg_color black | ||
51 | tide_php_color blue | ||
52 | tide_private_mode_bg_color black | ||
53 | tide_private_mode_color brwhite | ||
54 | tide_prompt_color_frame_and_connection brblack | ||
55 | tide_prompt_color_separator_same_color brblack | ||
56 | tide_pulumi_bg_color black | ||
57 | tide_pulumi_color yellow | ||
58 | tide_pwd_bg_color black | ||
59 | tide_pwd_color_anchors brcyan | ||
60 | tide_pwd_color_dirs cyan | ||
61 | tide_pwd_color_truncated_dirs magenta | ||
62 | tide_python_bg_color black | ||
63 | tide_python_color cyan | ||
64 | tide_ruby_bg_color black | ||
65 | tide_ruby_color red | ||
66 | tide_rustc_bg_color black | ||
67 | tide_rustc_color red | ||
68 | tide_shlvl_bg_color black | ||
69 | tide_shlvl_color yellow | ||
70 | tide_status_bg_color black | ||
71 | tide_status_bg_color_failure black | ||
72 | tide_status_color green | ||
73 | tide_status_color_failure red | ||
74 | tide_terraform_bg_color black | ||
75 | tide_terraform_color magenta | ||
76 | tide_time_bg_color black | ||
77 | tide_time_color brblack | ||
78 | tide_toolbox_bg_color black | ||
79 | tide_toolbox_color magenta | ||
80 | tide_vi_mode_bg_color_default black | ||
81 | tide_vi_mode_bg_color_insert black | ||
82 | tide_vi_mode_bg_color_replace black | ||
83 | tide_vi_mode_bg_color_visual black | ||
84 | tide_vi_mode_color_default white | ||
85 | tide_vi_mode_color_insert cyan | ||
86 | tide_vi_mode_color_replace green | ||
87 | tide_vi_mode_color_visual yellow | ||
88 | tide_zig_bg_color black | ||
89 | tide_zig_color yellow | ||
diff --git a/home-config/fish/functions/tide/configure/configs/lean.fish b/home-config/fish/functions/tide/configure/configs/lean.fish new file mode 100644 index 0000000..a958a17 --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/lean.fish | |||
@@ -0,0 +1,116 @@ | |||
1 | tide_aws_bg_color normal | ||
2 | tide_aws_color FF9900 | ||
3 | tide_character_color $_tide_color_green | ||
4 | tide_character_color_failure FF0000 | ||
5 | tide_cmd_duration_bg_color normal | ||
6 | tide_cmd_duration_color 87875F | ||
7 | tide_cmd_duration_decimals 0 | ||
8 | tide_cmd_duration_threshold 3000 | ||
9 | tide_context_always_display false | ||
10 | tide_context_bg_color normal | ||
11 | tide_context_color_default D7AF87 | ||
12 | tide_context_color_root $_tide_color_gold | ||
13 | tide_context_color_ssh D7AF87 | ||
14 | tide_context_hostname_parts 1 | ||
15 | tide_crystal_bg_color normal | ||
16 | tide_crystal_color FFFFFF | ||
17 | tide_direnv_bg_color normal | ||
18 | tide_direnv_bg_color_denied normal | ||
19 | tide_direnv_color $_tide_color_gold | ||
20 | tide_direnv_color_denied FF0000 | ||
21 | tide_distrobox_bg_color normal | ||
22 | tide_distrobox_color FF00FF | ||
23 | tide_docker_bg_color normal | ||
24 | tide_docker_color 2496ED | ||
25 | tide_docker_default_contexts default colima | ||
26 | tide_elixir_bg_color normal | ||
27 | tide_elixir_color 4E2A8E | ||
28 | tide_gcloud_bg_color normal | ||
29 | tide_gcloud_color 4285F4 | ||
30 | tide_git_bg_color normal | ||
31 | tide_git_bg_color_unstable normal | ||
32 | tide_git_bg_color_urgent normal | ||
33 | tide_git_color_branch $_tide_color_green | ||
34 | tide_git_color_conflicted FF0000 | ||
35 | tide_git_color_dirty $_tide_color_gold | ||
36 | tide_git_color_operation FF0000 | ||
37 | tide_git_color_staged $_tide_color_gold | ||
38 | tide_git_color_stash $_tide_color_green | ||
39 | tide_git_color_untracked $_tide_color_light_blue | ||
40 | tide_git_color_upstream $_tide_color_green | ||
41 | tide_git_truncation_length 24 | ||
42 | tide_git_truncation_strategy | ||
43 | tide_go_bg_color normal | ||
44 | tide_go_color 00ACD7 | ||
45 | tide_java_bg_color normal | ||
46 | tide_java_color ED8B00 | ||
47 | tide_jobs_bg_color normal | ||
48 | tide_jobs_color $_tide_color_dark_green | ||
49 | tide_jobs_number_threshold 1000 | ||
50 | tide_kubectl_bg_color normal | ||
51 | tide_kubectl_color 326CE5 | ||
52 | tide_left_prompt_frame_enabled false | ||
53 | tide_left_prompt_items pwd git newline character | ||
54 | tide_left_prompt_prefix '' | ||
55 | tide_left_prompt_separator_diff_color ' ' | ||
56 | tide_left_prompt_separator_same_color ' ' | ||
57 | tide_left_prompt_suffix ' ' | ||
58 | tide_nix_shell_bg_color normal | ||
59 | tide_nix_shell_color 7EBAE4 | ||
60 | tide_node_bg_color normal | ||
61 | tide_node_color 44883E | ||
62 | tide_os_bg_color normal | ||
63 | tide_os_color normal | ||
64 | tide_php_bg_color normal | ||
65 | tide_php_color 617CBE | ||
66 | tide_private_mode_bg_color normal | ||
67 | tide_private_mode_color FFFFFF | ||
68 | tide_prompt_add_newline_before true | ||
69 | tide_prompt_color_frame_and_connection 6C6C6C | ||
70 | tide_prompt_color_separator_same_color 949494 | ||
71 | tide_prompt_min_cols 34 | ||
72 | tide_prompt_pad_items false | ||
73 | tide_prompt_transient_enabled false | ||
74 | tide_pulumi_bg_color normal | ||
75 | tide_pulumi_color F7BF2A | ||
76 | tide_pwd_bg_color normal | ||
77 | tide_pwd_color_anchors $_tide_color_light_blue | ||
78 | tide_pwd_color_dirs $_tide_color_dark_blue | ||
79 | tide_pwd_color_truncated_dirs 8787AF | ||
80 | tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json build.zig | ||
81 | tide_python_bg_color normal | ||
82 | tide_python_color 00AFAF | ||
83 | tide_right_prompt_frame_enabled false | ||
84 | tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig | ||
85 | tide_right_prompt_prefix ' ' | ||
86 | tide_right_prompt_separator_diff_color ' ' | ||
87 | tide_right_prompt_separator_same_color ' ' | ||
88 | tide_right_prompt_suffix '' | ||
89 | tide_ruby_bg_color normal | ||
90 | tide_ruby_color B31209 | ||
91 | tide_rustc_bg_color normal | ||
92 | tide_rustc_color F74C00 | ||
93 | tide_shlvl_bg_color normal | ||
94 | tide_shlvl_color d78700 | ||
95 | tide_shlvl_threshold 1 | ||
96 | tide_status_bg_color normal | ||
97 | tide_status_bg_color_failure normal | ||
98 | tide_status_color $_tide_color_dark_green | ||
99 | tide_status_color_failure D70000 | ||
100 | tide_terraform_bg_color normal | ||
101 | tide_terraform_color 844FBA | ||
102 | tide_time_bg_color normal | ||
103 | tide_time_color 5F8787 | ||
104 | tide_time_format %T | ||
105 | tide_toolbox_bg_color normal | ||
106 | tide_toolbox_color 613583 | ||
107 | tide_vi_mode_bg_color_default normal | ||
108 | tide_vi_mode_bg_color_insert normal | ||
109 | tide_vi_mode_bg_color_replace normal | ||
110 | tide_vi_mode_bg_color_visual normal | ||
111 | tide_vi_mode_color_default 949494 | ||
112 | tide_vi_mode_color_insert 87AFAF | ||
113 | tide_vi_mode_color_replace 87AF87 | ||
114 | tide_vi_mode_color_visual FF8700 | ||
115 | tide_zig_bg_color normal | ||
116 | tide_zig_color F7A41D | ||
diff --git a/home-config/fish/functions/tide/configure/configs/lean_16color.fish b/home-config/fish/functions/tide/configure/configs/lean_16color.fish new file mode 100644 index 0000000..16c2511 --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/lean_16color.fish | |||
@@ -0,0 +1,89 @@ | |||
1 | tide_aws_bg_color normal | ||
2 | tide_aws_color yellow | ||
3 | tide_character_color brgreen | ||
4 | tide_character_color_failure brred | ||
5 | tide_cmd_duration_bg_color normal | ||
6 | tide_cmd_duration_color brblack | ||
7 | tide_context_bg_color normal | ||
8 | tide_context_color_default yellow | ||
9 | tide_context_color_root bryellow | ||
10 | tide_context_color_ssh yellow | ||
11 | tide_crystal_bg_color normal | ||
12 | tide_crystal_color brwhite | ||
13 | tide_direnv_bg_color normal | ||
14 | tide_direnv_bg_color_denied normal | ||
15 | tide_direnv_color bryellow | ||
16 | tide_direnv_color_denied brred | ||
17 | tide_distrobox_bg_color normal | ||
18 | tide_distrobox_color brmagenta | ||
19 | tide_docker_bg_color normal | ||
20 | tide_docker_color blue | ||
21 | tide_elixir_bg_color normal | ||
22 | tide_elixir_color magenta | ||
23 | tide_gcloud_bg_color normal | ||
24 | tide_gcloud_color blue | ||
25 | tide_git_bg_color normal | ||
26 | tide_git_bg_color_unstable normal | ||
27 | tide_git_bg_color_urgent normal | ||
28 | tide_git_color_branch brgreen | ||
29 | tide_git_color_conflicted brred | ||
30 | tide_git_color_dirty bryellow | ||
31 | tide_git_color_operation brred | ||
32 | tide_git_color_staged bryellow | ||
33 | tide_git_color_stash brgreen | ||
34 | tide_git_color_untracked brblue | ||
35 | tide_git_color_upstream brgreen | ||
36 | tide_go_bg_color normal | ||
37 | tide_go_color brcyan | ||
38 | tide_java_bg_color normal | ||
39 | tide_java_color yellow | ||
40 | tide_jobs_bg_color normal | ||
41 | tide_jobs_color green | ||
42 | tide_kubectl_bg_color normal | ||
43 | tide_kubectl_color blue | ||
44 | tide_nix_shell_bg_color normal | ||
45 | tide_nix_shell_color brblue | ||
46 | tide_node_bg_color normal | ||
47 | tide_node_color green | ||
48 | tide_os_bg_color normal | ||
49 | tide_os_color brwhite | ||
50 | tide_php_bg_color normal | ||
51 | tide_php_color blue | ||
52 | tide_private_mode_bg_color normal | ||
53 | tide_private_mode_color brwhite | ||
54 | tide_prompt_color_frame_and_connection brblack | ||
55 | tide_prompt_color_separator_same_color brblack | ||
56 | tide_pulumi_bg_color normal | ||
57 | tide_pulumi_color yellow | ||
58 | tide_pwd_bg_color normal | ||
59 | tide_pwd_color_anchors brcyan | ||
60 | tide_pwd_color_dirs cyan | ||
61 | tide_pwd_color_truncated_dirs magenta | ||
62 | tide_python_bg_color normal | ||
63 | tide_python_color cyan | ||
64 | tide_ruby_bg_color normal | ||
65 | tide_ruby_color red | ||
66 | tide_rustc_bg_color normal | ||
67 | tide_rustc_color red | ||
68 | tide_shlvl_bg_color normal | ||
69 | tide_shlvl_color yellow | ||
70 | tide_status_bg_color normal | ||
71 | tide_status_bg_color_failure normal | ||
72 | tide_status_color green | ||
73 | tide_status_color_failure red | ||
74 | tide_terraform_bg_color normal | ||
75 | tide_terraform_color magenta | ||
76 | tide_time_bg_color normal | ||
77 | tide_time_color brblack | ||
78 | tide_toolbox_bg_color normal | ||
79 | tide_toolbox_color magenta | ||
80 | tide_vi_mode_bg_color_default normal | ||
81 | tide_vi_mode_bg_color_insert normal | ||
82 | tide_vi_mode_bg_color_replace normal | ||
83 | tide_vi_mode_bg_color_visual normal | ||
84 | tide_vi_mode_color_default white | ||
85 | tide_vi_mode_color_insert cyan | ||
86 | tide_vi_mode_color_replace green | ||
87 | tide_vi_mode_color_visual yellow | ||
88 | tide_zig_bg_color normal | ||
89 | tide_zig_color yellow | ||
diff --git a/home-config/fish/functions/tide/configure/configs/rainbow.fish b/home-config/fish/functions/tide/configure/configs/rainbow.fish new file mode 100644 index 0000000..60c1592 --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/rainbow.fish | |||
@@ -0,0 +1,116 @@ | |||
1 | tide_aws_bg_color FF9900 | ||
2 | tide_aws_color 232F3E | ||
3 | tide_character_color $_tide_color_green | ||
4 | tide_character_color_failure FF0000 | ||
5 | tide_cmd_duration_bg_color C4A000 | ||
6 | tide_cmd_duration_color 000000 | ||
7 | tide_cmd_duration_decimals 0 | ||
8 | tide_cmd_duration_threshold 3000 | ||
9 | tide_context_always_display false | ||
10 | tide_context_bg_color 444444 | ||
11 | tide_context_color_default D7AF87 | ||
12 | tide_context_color_root $_tide_color_gold | ||
13 | tide_context_color_ssh D7AF87 | ||
14 | tide_context_hostname_parts 1 | ||
15 | tide_crystal_bg_color FFFFFF | ||
16 | tide_crystal_color 000000 | ||
17 | tide_direnv_bg_color $_tide_color_gold | ||
18 | tide_direnv_bg_color_denied FF0000 | ||
19 | tide_direnv_color 000000 | ||
20 | tide_direnv_color_denied 000000 | ||
21 | tide_distrobox_bg_color FF00FF | ||
22 | tide_distrobox_color 000000 | ||
23 | tide_docker_bg_color 2496ED | ||
24 | tide_docker_color 000000 | ||
25 | tide_docker_default_contexts default colima | ||
26 | tide_elixir_bg_color 4E2A8E | ||
27 | tide_elixir_color 000000 | ||
28 | tide_gcloud_bg_color 4285F4 | ||
29 | tide_gcloud_color 000000 | ||
30 | tide_git_bg_color 4E9A06 | ||
31 | tide_git_bg_color_unstable C4A000 | ||
32 | tide_git_bg_color_urgent CC0000 | ||
33 | tide_git_color_branch 000000 | ||
34 | tide_git_color_conflicted 000000 | ||
35 | tide_git_color_dirty 000000 | ||
36 | tide_git_color_operation 000000 | ||
37 | tide_git_color_staged 000000 | ||
38 | tide_git_color_stash 000000 | ||
39 | tide_git_color_untracked 000000 | ||
40 | tide_git_color_upstream 000000 | ||
41 | tide_git_truncation_length 24 | ||
42 | tide_git_truncation_strategy | ||
43 | tide_go_bg_color 00ACD7 | ||
44 | tide_go_color 000000 | ||
45 | tide_java_bg_color ED8B00 | ||
46 | tide_java_color 000000 | ||
47 | tide_jobs_bg_color 444444 | ||
48 | tide_jobs_color 4E9A06 | ||
49 | tide_jobs_number_threshold 1000 | ||
50 | tide_kubectl_bg_color 326CE5 | ||
51 | tide_kubectl_color 000000 | ||
52 | tide_left_prompt_frame_enabled true | ||
53 | tide_left_prompt_items pwd git newline | ||
54 | tide_left_prompt_prefix '' | ||
55 | tide_left_prompt_separator_diff_color | ||
56 | tide_left_prompt_separator_same_color | ||
57 | tide_left_prompt_suffix | ||
58 | tide_nix_shell_bg_color 7EBAE4 | ||
59 | tide_nix_shell_color 000000 | ||
60 | tide_node_bg_color 44883E | ||
61 | tide_node_color 000000 | ||
62 | tide_os_bg_color $os_branding_bg_color | ||
63 | tide_os_color $os_branding_color | ||
64 | tide_php_bg_color 617CBE | ||
65 | tide_php_color 000000 | ||
66 | tide_private_mode_bg_color F1F3F4 | ||
67 | tide_private_mode_color 000000 | ||
68 | tide_prompt_add_newline_before true | ||
69 | tide_prompt_color_frame_and_connection 6C6C6C | ||
70 | tide_prompt_color_separator_same_color 949494 | ||
71 | tide_prompt_min_cols 34 | ||
72 | tide_prompt_pad_items true | ||
73 | tide_prompt_transient_enabled false | ||
74 | tide_pulumi_bg_color F7BF2A | ||
75 | tide_pulumi_color 000000 | ||
76 | tide_pwd_bg_color 3465A4 | ||
77 | tide_pwd_color_anchors E4E4E4 | ||
78 | tide_pwd_color_dirs E4E4E4 | ||
79 | tide_pwd_color_truncated_dirs BCBCBC | ||
80 | tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json build.zig | ||
81 | tide_python_bg_color 444444 | ||
82 | tide_python_color 00AFAF | ||
83 | tide_right_prompt_frame_enabled true | ||
84 | tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig | ||
85 | tide_right_prompt_prefix | ||
86 | tide_right_prompt_separator_diff_color | ||
87 | tide_right_prompt_separator_same_color | ||
88 | tide_right_prompt_suffix '' | ||
89 | tide_ruby_bg_color B31209 | ||
90 | tide_ruby_color 000000 | ||
91 | tide_rustc_bg_color F74C00 | ||
92 | tide_rustc_color 000000 | ||
93 | tide_shlvl_bg_color 808000 | ||
94 | tide_shlvl_color 000000 | ||
95 | tide_shlvl_threshold 1 | ||
96 | tide_status_bg_color 2E3436 | ||
97 | tide_status_bg_color_failure CC0000 | ||
98 | tide_status_color 4E9A06 | ||
99 | tide_status_color_failure FFFF00 | ||
100 | tide_terraform_bg_color 800080 | ||
101 | tide_terraform_color 000000 | ||
102 | tide_time_bg_color D3D7CF | ||
103 | tide_time_color 000000 | ||
104 | tide_time_format %T | ||
105 | tide_toolbox_bg_color 613583 | ||
106 | tide_toolbox_color 000000 | ||
107 | tide_vi_mode_bg_color_default 949494 | ||
108 | tide_vi_mode_bg_color_insert 87AFAF | ||
109 | tide_vi_mode_bg_color_replace 87AF87 | ||
110 | tide_vi_mode_bg_color_visual FF8700 | ||
111 | tide_vi_mode_color_default 000000 | ||
112 | tide_vi_mode_color_insert 000000 | ||
113 | tide_vi_mode_color_replace 000000 | ||
114 | tide_vi_mode_color_visual 000000 | ||
115 | tide_zig_bg_color F7A41D | ||
116 | tide_zig_color 000000 | ||
diff --git a/home-config/fish/functions/tide/configure/configs/rainbow_16color.fish b/home-config/fish/functions/tide/configure/configs/rainbow_16color.fish new file mode 100644 index 0000000..a040f58 --- /dev/null +++ b/home-config/fish/functions/tide/configure/configs/rainbow_16color.fish | |||
@@ -0,0 +1,93 @@ | |||
1 | tide_aws_bg_color yellow | ||
2 | tide_aws_color brblack | ||
3 | tide_character_color brgreen | ||
4 | tide_character_color_failure brred | ||
5 | tide_cmd_duration_bg_color yellow | ||
6 | tide_cmd_duration_color black | ||
7 | tide_context_bg_color brblack | ||
8 | tide_context_color_default yellow | ||
9 | tide_context_color_root yellow | ||
10 | tide_context_color_ssh yellow | ||
11 | tide_crystal_bg_color brwhite | ||
12 | tide_crystal_color black | ||
13 | tide_direnv_bg_color bryellow | ||
14 | tide_direnv_bg_color_denied brred | ||
15 | tide_direnv_color black | ||
16 | tide_direnv_color_denied black | ||
17 | tide_distrobox_bg_color brmagenta | ||
18 | tide_distrobox_color black | ||
19 | tide_docker_bg_color blue | ||
20 | tide_docker_color black | ||
21 | tide_elixir_bg_color magenta | ||
22 | tide_elixir_color black | ||
23 | tide_gcloud_bg_color blue | ||
24 | tide_gcloud_color black | ||
25 | tide_git_bg_color green | ||
26 | tide_git_bg_color_unstable yellow | ||
27 | tide_git_bg_color_urgent red | ||
28 | tide_git_color_branch black | ||
29 | tide_git_color_conflicted black | ||
30 | tide_git_color_dirty black | ||
31 | tide_git_color_operation black | ||
32 | tide_git_color_staged black | ||
33 | tide_git_color_stash black | ||
34 | tide_git_color_untracked black | ||
35 | tide_git_color_upstream black | ||
36 | tide_go_bg_color brcyan | ||
37 | tide_go_color black | ||
38 | tide_java_bg_color yellow | ||
39 | tide_java_color black | ||
40 | tide_jobs_bg_color brblack | ||
41 | tide_jobs_color green | ||
42 | tide_kubectl_bg_color blue | ||
43 | tide_kubectl_color black | ||
44 | tide_nix_shell_bg_color brblue | ||
45 | tide_nix_shell_color black | ||
46 | tide_node_bg_color green | ||
47 | tide_node_color black | ||
48 | tide_os_bg_color white | ||
49 | tide_os_color black | ||
50 | tide_php_bg_color blue | ||
51 | tide_php_color black | ||
52 | tide_private_mode_bg_color brwhite | ||
53 | tide_private_mode_color black | ||
54 | tide_prompt_color_frame_and_connection brblack | ||
55 | tide_prompt_color_separator_same_color brblack | ||
56 | tide_pulumi_bg_color yellow | ||
57 | tide_pulumi_color black | ||
58 | tide_pwd_bg_color blue | ||
59 | tide_pwd_color_anchors brwhite | ||
60 | tide_pwd_color_dirs brwhite | ||
61 | tide_pwd_color_truncated_dirs white | ||
62 | tide_python_bg_color brblack | ||
63 | tide_python_color cyan | ||
64 | tide_ruby_bg_color red | ||
65 | tide_ruby_color black | ||
66 | tide_rustc_bg_color red | ||
67 | tide_rustc_color black | ||
68 | tide_shlvl_bg_color yellow | ||
69 | tide_shlvl_color black | ||
70 | tide_status_bg_color black | ||
71 | tide_status_bg_color_failure red | ||
72 | tide_status_color green | ||
73 | tide_status_color_failure bryellow | ||
74 | tide_terraform_bg_color magenta | ||
75 | tide_terraform_color black | ||
76 | tide_time_bg_color white | ||
77 | tide_time_color black | ||
78 | tide_toolbox_bg_color magenta | ||
79 | tide_toolbox_color black | ||
80 | tide_vi_mode_bg_color_default white | ||
81 | tide_vi_mode_bg_color_insert cyan | ||
82 | tide_vi_mode_bg_color_replace green | ||
83 | tide_vi_mode_bg_color_visual yellow | ||
84 | tide_vi_mode_color_default black | ||
85 | tide_vi_mode_color_insert black | ||
86 | tide_vi_mode_color_replace black | ||
87 | tide_vi_mode_color_visual black | ||
88 | tide_vi_mode_icon_default D | ||
89 | tide_vi_mode_icon_insert I | ||
90 | tide_vi_mode_icon_replace R | ||
91 | tide_vi_mode_icon_visual V | ||
92 | tide_zig_bg_color yellow | ||
93 | tide_zig_color black | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_cache_variables.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_cache_variables.fish new file mode 100644 index 0000000..4661ab1 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_cache_variables.fish | |||
@@ -0,0 +1,41 @@ | |||
1 | function _fake_tide_cache_variables | ||
2 | # pwd | ||
3 | set_color -o $fake_tide_pwd_color_anchors | read -gx _fake_tide_color_anchors | ||
4 | set -gx _fake_tide_color_truncated_dirs "$(set_color $fake_tide_pwd_color_truncated_dirs)" | ||
5 | set -gx _fake_tide_reset_to_color_dirs (set_color normal -b $fake_tide_pwd_bg_color; set_color $fake_tide_pwd_color_dirs) | ||
6 | |||
7 | # git | ||
8 | contains git $fake_tide_left_prompt_items $fake_tide_right_prompt_items && | ||
9 | set -gx _fake_tide_location_color "$(set_color $fake_tide_git_color_branch)" | ||
10 | |||
11 | # private_mode | ||
12 | if contains private_mode $fake_tide_left_prompt_items $fake_tide_right_prompt_items && test -n "$fish_private_mode" | ||
13 | set -gx _fake_tide_private_mode | ||
14 | else | ||
15 | set -e _fake_tide_private_mode | ||
16 | end | ||
17 | |||
18 | # Same-color-separator color | ||
19 | set -gx _fake_tide_color_separator_same_color "$(set_color $fake_tide_prompt_color_separator_same_color)" | ||
20 | |||
21 | # two line prompt | ||
22 | if contains newline $fake_tide_left_prompt_items | ||
23 | set_color $fake_tide_prompt_color_frame_and_connection -b normal | read -gx _fake_tide_prompt_and_frame_color | ||
24 | else | ||
25 | set -e _fake_tide_prompt_and_frame_color | ||
26 | end | ||
27 | |||
28 | # newline before | ||
29 | if test "$fake_tide_prompt_add_newline_before" = true | ||
30 | set -g _fake_tide_add_newline '' | ||
31 | else | ||
32 | set -e _fake_tide_add_newline | ||
33 | end | ||
34 | |||
35 | # item padding | ||
36 | if test "$fake_tide_prompt_pad_items" = true | ||
37 | set -gx _fake_tide_pad ' ' | ||
38 | else | ||
39 | set -e _fake_tide_pad | ||
40 | end | ||
41 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_character.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_character.fish new file mode 100644 index 0000000..94892ec --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_character.fish | |||
@@ -0,0 +1,8 @@ | |||
1 | function _fake_tide_item_character | ||
2 | set_color $fake_tide_character_color | ||
3 | if contains newline $fake_tide_left_prompt_items || set -q _configure_transient | ||
4 | echo -ns $fake_tide_character_icon | ||
5 | else | ||
6 | echo -ns ' '$fake_tide_character_icon | ||
7 | end | ||
8 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_cmd_duration.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_cmd_duration.fish new file mode 100644 index 0000000..5aa13b2 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_cmd_duration.fish | |||
@@ -0,0 +1,3 @@ | |||
1 | function _fake_tide_item_cmd_duration | ||
2 | _fake_tide_print_item cmd_duration $fake_tide_cmd_duration_icon' ' 5s | ||
3 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_git.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_git.fish new file mode 100644 index 0000000..fb5b957 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_git.fish | |||
@@ -0,0 +1,3 @@ | |||
1 | function _fake_tide_item_git | ||
2 | _fake_tide_print_item git (set_color $fake_tide_git_color_branch) $fake_tide_git_icon' ' main | ||
3 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_newline.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_newline.fish new file mode 100644 index 0000000..c614bab --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_newline.fish | |||
@@ -0,0 +1,5 @@ | |||
1 | function _fake_tide_item_newline | ||
2 | set_color $prev_bg_color -b normal | ||
3 | var=fake_tide_"$_fake_tide_side"_prompt_suffix echo $$var | ||
4 | set -g add_prefix | ||
5 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_os.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_os.fish new file mode 100644 index 0000000..5255721 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_os.fish | |||
@@ -0,0 +1,3 @@ | |||
1 | function _fake_tide_item_os | ||
2 | _fake_tide_print_item os $fake_tide_os_icon | ||
3 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_item_time.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_time.fish new file mode 100644 index 0000000..bbce0b5 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_item_time.fish | |||
@@ -0,0 +1,3 @@ | |||
1 | function _fake_tide_item_time | ||
2 | _fake_tide_print_item time (date +$fake_tide_time_format) | ||
3 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_print_item.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_print_item.fish new file mode 100644 index 0000000..30cd024 --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_print_item.fish | |||
@@ -0,0 +1,22 @@ | |||
1 | function _fake_tide_print_item -a item | ||
2 | var=fake_tide_"$item"_bg_color set -f item_bg_color $$var | ||
3 | |||
4 | if set -e add_prefix | ||
5 | set_color $item_bg_color -b normal | ||
6 | var=fake_tide_"$_fake_tide_side"_prompt_prefix echo -ns $$var | ||
7 | else if test "$item_bg_color" = "$prev_bg_color" | ||
8 | var=fake_tide_"$_fake_tide_side"_prompt_separator_same_color echo -ns $_fake_tide_color_separator_same_color$$var | ||
9 | else if test "$_fake_tide_side" = left | ||
10 | set_color $prev_bg_color -b $item_bg_color | ||
11 | echo -ns $fake_tide_left_prompt_separator_diff_color | ||
12 | else | ||
13 | set_color $item_bg_color -b $prev_bg_color | ||
14 | echo -ns $fake_tide_right_prompt_separator_diff_color | ||
15 | end | ||
16 | |||
17 | var=fake_tide_"$item"_color set_color $$var -b $item_bg_color | ||
18 | |||
19 | echo -ns $_fake_tide_pad $argv[2..] $_fake_tide_pad | ||
20 | |||
21 | set -g prev_bg_color $item_bg_color | ||
22 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_prompt.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_prompt.fish new file mode 100644 index 0000000..11f20ca --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_prompt.fish | |||
@@ -0,0 +1,42 @@ | |||
1 | function _fake_tide_prompt | ||
2 | set -g add_prefix | ||
3 | _fake_tide_side=left set -f left (for item in $fake_tide_left_prompt_items | ||
4 | _fake_tide_item_$item | ||
5 | end | ||
6 | if not set -e add_prefix | ||
7 | set_color $prev_bg_color -b normal | ||
8 | echo -ns $fake_tide_left_prompt_suffix | ||
9 | end) | ||
10 | |||
11 | set -g add_prefix | ||
12 | _fake_tide_side=right set -f right (for item in $fake_tide_right_prompt_items | ||
13 | _fake_tide_item_$item | ||
14 | end | ||
15 | if not set -e add_prefix | ||
16 | set_color $prev_bg_color -b normal | ||
17 | echo -ns $fake_tide_right_prompt_suffix | ||
18 | end) | ||
19 | |||
20 | if set -q _fake_tide_prompt_and_frame_color # If prompt is two lines | ||
21 | test "$fake_tide_left_prompt_frame_enabled" = true && | ||
22 | set left[1] "$_fake_tide_prompt_and_frame_color╭─$left[1]" && | ||
23 | set left[2] "$_fake_tide_prompt_and_frame_color╰─$left[2]" | ||
24 | test "$fake_tide_right_prompt_frame_enabled" = true && | ||
25 | set right[1] "$right[1]$_fake_tide_prompt_and_frame_color─╮" && | ||
26 | set right[2] "$right[2]$_fake_tide_prompt_and_frame_color─╯" | ||
27 | |||
28 | # 5 = @PWD@ length which will be replaced | ||
29 | math $fake_columns+5-(string length --visible "$left[1]$right[1]") | read -lx dist_btwn_sides | ||
30 | echo -ns "$right[2]"\n(string replace @PWD@ (_fake_tide_pwd) "$left[1]")$_fake_tide_prompt_and_frame_color | ||
31 | |||
32 | string repeat --no-newline --max (math max 0, $dist_btwn_sides-$_tide_pwd_len) $fake_tide_prompt_icon_connection | ||
33 | echo -ns "$right[1]"\n"$left[2] " | ||
34 | else | ||
35 | math $fake_columns+5-(string length --visible "$left[1]$right[1]") -$fake_tide_prompt_min_cols | read -lx dist_btwn_sides | ||
36 | string replace @PWD@ (_fake_tide_pwd) "$right[1]" "$left[1] " | ||
37 | end | ||
38 | end | ||
39 | |||
40 | function _fake_tide_item_pwd | ||
41 | _fake_tide_print_item pwd @PWD@ | ||
42 | end | ||
diff --git a/home-config/fish/functions/tide/configure/functions/_fake_tide_pwd.fish b/home-config/fish/functions/tide/configure/functions/_fake_tide_pwd.fish new file mode 100644 index 0000000..433eafa --- /dev/null +++ b/home-config/fish/functions/tide/configure/functions/_fake_tide_pwd.fish | |||
@@ -0,0 +1,11 @@ | |||
1 | function _fake_tide_pwd | ||
2 | set -l out ( | ||
3 | set_color $fake_tide_pwd_color_dirs | ||
4 | echo -ns $fake_tide_pwd_icon' ' '~/' | ||
5 | set_color -o $fake_tide_pwd_color_anchors | ||
6 | echo -ns src | ||
7 | set_color normal -b $fake_tide_pwd_bg_color | ||
8 | ) | ||
9 | set -g _tide_pwd_len (string length --visible $out) | ||
10 | echo -ns $out | ||
11 | end | ||
diff --git a/home-config/fish/functions/tide/configure/icons.fish b/home-config/fish/functions/tide/configure/icons.fish new file mode 100644 index 0000000..70611cd --- /dev/null +++ b/home-config/fish/functions/tide/configure/icons.fish | |||
@@ -0,0 +1,40 @@ | |||
1 | tide_aws_icon # Actual aws glyph is harder to see | ||
2 | tide_character_icon ❯ | ||
3 | tide_character_vi_icon_default ❮ | ||
4 | tide_character_vi_icon_replace ▶ | ||
5 | tide_character_vi_icon_visual V | ||
6 | tide_cmd_duration_icon | ||
7 | tide_crystal_icon | ||
8 | tide_direnv_icon ▼ | ||
9 | tide_distrobox_icon | ||
10 | tide_docker_icon | ||
11 | tide_elixir_icon | ||
12 | tide_gcloud_icon # Actual google cloud glyph is harder to see | ||
13 | tide_git_icon | ||
14 | tide_go_icon | ||
15 | tide_java_icon | ||
16 | tide_jobs_icon | ||
17 | tide_kubectl_icon | ||
18 | tide_nix_shell_icon | ||
19 | tide_node_icon # Actual nodejs glyph is harder to see | ||
20 | tide_os_icon $os_branding_icon | ||
21 | tide_php_icon | ||
22 | tide_private_mode_icon | ||
23 | tide_prompt_icon_connection ' ' | ||
24 | tide_pulumi_icon | ||
25 | tide_pwd_icon | ||
26 | tide_pwd_icon_home | ||
27 | tide_pwd_icon_unwritable | ||
28 | tide_python_icon | ||
29 | tide_ruby_icon | ||
30 | tide_rustc_icon | ||
31 | tide_shlvl_icon | ||
32 | tide_status_icon ✔ | ||
33 | tide_status_icon_failure ✘ | ||
34 | tide_terraform_icon | ||
35 | tide_toolbox_icon | ||
36 | tide_vi_mode_icon_default D | ||
37 | tide_vi_mode_icon_insert I | ||
38 | tide_vi_mode_icon_replace R | ||
39 | tide_vi_mode_icon_visual V | ||
40 | tide_zig_icon | ||