mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 19:50:22 +03:00
Remove setting from prompt display
This commit is contained in:
parent
ccb149f045
commit
17f7922cf9
@ -123,10 +123,9 @@ function _tide_menu -a func
|
||||
end
|
||||
end
|
||||
|
||||
function _tide_display_prompt -a var_name var_value
|
||||
function _tide_display_prompt
|
||||
set -q _flag_auto && return
|
||||
|
||||
test -n "$var_name" && set -g $var_name $var_value
|
||||
_fake_tide_cache_variables
|
||||
set -l prompt (_fake_tide_prompt)
|
||||
|
||||
|
@ -2,13 +2,16 @@ function prompt_connection
|
||||
_tide_title 'Prompt Connection'
|
||||
|
||||
_tide_option 1 Disconnected
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection ' '
|
||||
set -g fake_tide_prompt_icon_connection ' '
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 2 Dotted
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection '·'
|
||||
set -g fake_tide_prompt_icon_connection '·'
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 3 Solid
|
||||
_tide_display_prompt fake_tide_prompt_icon_connection '─'
|
||||
set -g fake_tide_prompt_icon_connection '─'
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_menu (status function)
|
||||
switch $_tide_selected_option
|
||||
|
@ -10,16 +10,20 @@ function prompt_connection_andor_frame_color
|
||||
_tide_title "Connection & Frame Color"
|
||||
|
||||
_tide_option 1 Lightest
|
||||
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 808080
|
||||
set -g fake_tide_prompt_color_frame_and_connection 808080
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 2 Light
|
||||
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 6C6C6C
|
||||
set -g fake_tide_prompt_color_frame_and_connection 6C6C6C
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 3 Dark
|
||||
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 585858
|
||||
set -g fake_tide_prompt_color_frame_and_connection 585858
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 4 Darkest
|
||||
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 444444
|
||||
set -g fake_tide_prompt_color_frame_and_connection 444444
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_menu (status function)
|
||||
switch $_tide_selected_option
|
||||
|
@ -7,10 +7,12 @@ function show_time
|
||||
set -a fake_tide_right_prompt_items time
|
||||
|
||||
_tide_option 2 '24-hour format'
|
||||
_tide_display_prompt fake_tide_time_format %T
|
||||
set -g fake_tide_time_format %T
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_option 3 '12-hour format'
|
||||
_tide_display_prompt fake_tide_time_format %r
|
||||
set -g fake_tide_time_format %r
|
||||
_tide_display_prompt
|
||||
|
||||
_tide_menu (status function)
|
||||
switch $_tide_selected_option
|
||||
|
Loading…
Reference in New Issue
Block a user