dotfiles/fish/functions/tide/configure/choices/all/style.fish

37 lines
959 B
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function style
2023-11-20 11:20:55 -06:00
set -g _tide_configure_current_options
2023-10-08 22:26:07 -05:00
_tide_title 'Prompt Style'
_tide_option 1 Lean
_load_config lean
_tide_display_prompt
_tide_option 2 Classic
_load_config classic
_tide_display_prompt
_tide_option 3 Rainbow
_load_config rainbow
_tide_display_prompt
2023-11-20 11:20:55 -06:00
_tide_menu (status function) --no-restart
2023-10-08 22:26:07 -05:00
switch $_tide_selected_option
2023-11-20 11:20:55 -06:00
case Lean
2023-10-08 22:26:07 -05:00
_load_config lean
set -g _tide_configure_style lean
2023-11-20 11:20:55 -06:00
case Classic
2023-10-08 22:26:07 -05:00
_load_config classic
set -g _tide_configure_style classic
2023-11-20 11:20:55 -06:00
case Rainbow
2023-10-08 22:26:07 -05:00
_load_config rainbow
set -g _tide_configure_style rainbow
end
_next_choice all/prompt_colors
end
function _load_config -a name
2023-11-20 11:20:55 -06:00
string replace -r '^' 'set -g fake_' <(status dirname)/../../icons.fish | source
2023-10-08 22:26:07 -05:00
string replace -r '^' 'set -g fake_' <(status dirname)/../../configs/$name.fish | source
end