diff options
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish')
-rw-r--r-- | home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish | 51 |
1 files changed, 51 insertions, 0 deletions
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 | ||