Skip to content

Commit

Permalink
Remove setting from prompt display
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Sep 20, 2023
1 parent ccb149f commit 17f7922
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
3 changes: 1 addition & 2 deletions functions/_tide_sub_configure.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
9 changes: 6 additions & 3 deletions functions/tide/configure/choices/all/prompt_connection.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions functions/tide/configure/choices/all/show_time.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17f7922

Please sign in to comment.