1
1
mirror of https://github.com/IlanCosman/tide.git synced 2025-01-02 01:26:15 +03:00
tide/tide_theme/configure/choices/show_time.fish
2020-06-15 16:38:02 -07:00

33 lines
826 B
Fish

function show_time
set -a fake_tide_right_prompt_items 'time'
_title 'Show current time?'
_option 1 'No'
_display_prompt fake_tide_time_format ''
_option 2 '24-hour format'
_display_prompt fake_tide_time_format '%T'
_option 3 '12-hour format'
_display_prompt fake_tide_time_format '%r'
_display_restart_and_quit
switch (_menu 'Choice' 1/2/3/r/q)
case 1
set -g fake_tide_time_format ''
set -e fake_tide_right_prompt_items[-1]
_next_choice 'prompt_height'
case 2
set -g fake_tide_time_format '%T'
_next_choice 'prompt_height'
case 3
set -g fake_tide_time_format '%r'
_next_choice 'prompt_height'
case r
_begin
case q
_quit
end
end