From b88d77fb2d0d5028a6f5670695dee6bec129501f Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Fri, 5 Apr 2024 11:57:45 -0400 Subject: ahhh sloppy fish, still needs fixing, esp with the vars --- .../tide/configure/choices/all/style.fish | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 home-config/fish/functions/tide/configure/choices/all/style.fish (limited to 'home-config/fish/functions/tide/configure/choices/all/style.fish') 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 @@ +function style + set -g _tide_configure_current_options + + _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 + + _tide_menu (status function) --no-restart + switch $_tide_selected_option + case Lean + _load_config lean + set -g _tide_configure_style lean + case Classic + _load_config classic + set -g _tide_configure_style classic + case Rainbow + _load_config rainbow + set -g _tide_configure_style rainbow + end + _next_choice all/prompt_colors +end + +function _load_config -a name + string replace -r '^' 'set -g fake_' <(status dirname)/../../icons.fish | source + string replace -r '^' 'set -g fake_' <(status dirname)/../../configs/$name.fish | source +end -- cgit v1.2.3