diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
commit | b88d77fb2d0d5028a6f5670695dee6bec129501f (patch) | |
tree | 2536b0461d297e647cf07157641c9b1223339adf /home-config/fish/functions/tide/configure/choices/all/style.fish | |
parent | 776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff) |
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/all/style.fish')
-rw-r--r-- | home-config/fish/functions/tide/configure/choices/all/style.fish | 36 |
1 files changed, 36 insertions, 0 deletions
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 @@ | |||
1 | function style | ||
2 | set -g _tide_configure_current_options | ||
3 | |||
4 | _tide_title 'Prompt Style' | ||
5 | |||
6 | _tide_option 1 Lean | ||
7 | _load_config lean | ||
8 | _tide_display_prompt | ||
9 | |||
10 | _tide_option 2 Classic | ||
11 | _load_config classic | ||
12 | _tide_display_prompt | ||
13 | |||
14 | _tide_option 3 Rainbow | ||
15 | _load_config rainbow | ||
16 | _tide_display_prompt | ||
17 | |||
18 | _tide_menu (status function) --no-restart | ||
19 | switch $_tide_selected_option | ||
20 | case Lean | ||
21 | _load_config lean | ||
22 | set -g _tide_configure_style lean | ||
23 | case Classic | ||
24 | _load_config classic | ||
25 | set -g _tide_configure_style classic | ||
26 | case Rainbow | ||
27 | _load_config rainbow | ||
28 | set -g _tide_configure_style rainbow | ||
29 | end | ||
30 | _next_choice all/prompt_colors | ||
31 | end | ||
32 | |||
33 | function _load_config -a name | ||
34 | string replace -r '^' 'set -g fake_' <(status dirname)/../../icons.fish | source | ||
35 | string replace -r '^' 'set -g fake_' <(status dirname)/../../configs/$name.fish | source | ||
36 | end | ||