mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-22 03:21:46 +03:00
30 lines
726 B
Fish
30 lines
726 B
Fish
function show_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 ''
|
|
_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 |