diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-03-18 16:40:57 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-03-18 16:40:57 -0300 |
commit | 8600374371f91843064441113f4023cda1730877 (patch) | |
tree | bb4677ec186dd5c323f1f010207076b7df285606 /.config/fish/functions/tide/configure/choices/all/icons.fish | |
parent | c95dd49df12f4f8dc13cf3bdc4dad70a060bd5eb (diff) |
General fish fixes and updates
Diffstat (limited to '.config/fish/functions/tide/configure/choices/all/icons.fish')
-rw-r--r-- | .config/fish/functions/tide/configure/choices/all/icons.fish | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/fish/functions/tide/configure/choices/all/icons.fish b/.config/fish/functions/tide/configure/choices/all/icons.fish new file mode 100644 index 00000000..e53bffa5 --- /dev/null +++ b/.config/fish/functions/tide/configure/choices/all/icons.fish @@ -0,0 +1,33 @@ +function icons + _tide_title Icons + + _tide_option 1 'Few icons' + _tide_display_prompt + + _tide_option 2 'Many icons' + _enable_icons + _tide_display_prompt + + _tide_menu + switch $_tide_selected_option + case 1 + _disable_icons + end + _next_choice all/finish +end + +function _enable_icons + set -p fake_tide_left_prompt_items os + set -g fake_tide_pwd_icon + set -g fake_tide_pwd_icon_home + set -g fake_tide_cmd_duration_icon + set -g fake_tide_git_icon +end + +function _disable_icons + _tide_find_and_remove os fake_tide_left_prompt_items + set fake_tide_pwd_icon + set fake_tide_pwd_icon_home + set fake_tide_cmd_duration_icon + set fake_tide_git_icon +end |