summaryrefslogtreecommitdiff
path: root/.config/fish/functions/tide/configure/choices/all/prompt_colors.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/functions/tide/configure/choices/all/prompt_colors.fish')
-rw-r--r--.config/fish/functions/tide/configure/choices/all/prompt_colors.fish26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/fish/functions/tide/configure/choices/all/prompt_colors.fish b/.config/fish/functions/tide/configure/choices/all/prompt_colors.fish
new file mode 100644
index 00000000..90b1a9d9
--- /dev/null
+++ b/.config/fish/functions/tide/configure/choices/all/prompt_colors.fish
@@ -0,0 +1,26 @@
+function prompt_colors
+ _tide_title 'Prompt Colors'
+
+ _tide_option 1 'True color'
+ _tide_display_prompt
+
+ _tide_option 2 '16 colors'
+ _load_config "$_tide_configure_style"_16color
+ set -g _tide_16color true
+ _tide_display_prompt
+
+ _tide_menu
+ switch $_tide_selected_option
+ case 1
+ _load_config "$_tide_configure_style"
+ set -e _tide_16color
+ switch $_tide_configure_style
+ case lean rainbow
+ _next_choice all/show_time
+ case classic
+ _next_choice classic/classic_prompt_color
+ end
+ case 2
+ _next_choice all/show_time
+ end
+end