Initial commit
This commit is contained in:
28
functions/tide/configure/choices/all/prompt_connection.fish
Normal file
28
functions/tide/configure/choices/all/prompt_connection.fish
Normal file
@@ -0,0 +1,28 @@
|
||||
function prompt_connection
|
||||
_tide_title 'Prompt Connection'
|
||||
|
||||
_tide_option 1 Disconnected
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection ' '
|
||||
|
||||
_tide_option 2 Dotted
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection '·'
|
||||
|
||||
_tide_option 3 Solid
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection '─'
|
||||
|
||||
_tide_menu
|
||||
switch $_tide_selected_option
|
||||
case 1
|
||||
set -g fake_tide_prompt_icon_connection ' '
|
||||
case 2
|
||||
set -g fake_tide_prompt_icon_connection '·'
|
||||
case 3
|
||||
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_prompt_frame
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user