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

32 lines
905 B
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function prompt_connection
_tide_title 'Prompt Connection'
_tide_option 1 Disconnected
2023-11-20 11:20:55 -06:00
set -g fake_tide_prompt_icon_connection ' '
_tide_display_prompt
2023-10-08 22:26:07 -05:00
_tide_option 2 Dotted
2023-11-20 11:20:55 -06:00
set -g fake_tide_prompt_icon_connection '·'
_tide_display_prompt
2023-10-08 22:26:07 -05:00
_tide_option 3 Solid
2023-11-20 11:20:55 -06:00
set -g fake_tide_prompt_icon_connection '─'
_tide_display_prompt
2023-10-08 22:26:07 -05:00
2023-11-20 11:20:55 -06:00
_tide_menu (status function)
2023-10-08 22:26:07 -05:00
switch $_tide_selected_option
2023-11-20 11:20:55 -06:00
case Disconnected
2023-10-08 22:26:07 -05:00
set -g fake_tide_prompt_icon_connection ' '
2023-11-20 11:20:55 -06:00
case Dotted
2023-10-08 22:26:07 -05:00
set -g fake_tide_prompt_icon_connection '·'
2023-11-20 11:20:55 -06:00
case Solid
2023-10-08 22:26:07 -05:00
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
2023-11-20 11:20:55 -06:00
_next_choice powerline/powerline_right_prompt_frame
2023-10-08 22:26:07 -05:00
end
end