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