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 --- .../configure/choices/all/prompt_connection.fish | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish (limited to 'home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish') diff --git a/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish b/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish new file mode 100644 index 0000000..ff76546 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/prompt_connection.fish @@ -0,0 +1,31 @@ +function prompt_connection + _tide_title 'Prompt Connection' + + _tide_option 1 Disconnected + set -g fake_tide_prompt_icon_connection ' ' + _tide_display_prompt + + _tide_option 2 Dotted + set -g fake_tide_prompt_icon_connection '·' + _tide_display_prompt + + _tide_option 3 Solid + set -g fake_tide_prompt_icon_connection '─' + _tide_display_prompt + + _tide_menu (status function) + switch $_tide_selected_option + case Disconnected + set -g fake_tide_prompt_icon_connection ' ' + case Dotted + set -g fake_tide_prompt_icon_connection '·' + case Solid + set -g fake_tide_prompt_icon_connection '─' + end + switch $_tide_configure_style + case lean + _next_choice all/prompt_connection_andor_frame_color + case classic rainbow + _next_choice powerline/powerline_right_prompt_frame + end +end -- cgit v1.2.3