diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-04-05 11:57:45 -0400 |
| commit | b88d77fb2d0d5028a6f5670695dee6bec129501f (patch) | |
| tree | 2536b0461d297e647cf07157641c9b1223339adf /home-config/fish/functions/tide/configure/choices/all/show_time.fish | |
| parent | 776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff) | |
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/all/show_time.fish')
| -rw-r--r-- | home-config/fish/functions/tide/configure/choices/all/show_time.fish | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/home-config/fish/functions/tide/configure/choices/all/show_time.fish b/home-config/fish/functions/tide/configure/choices/all/show_time.fish new file mode 100644 index 0000000..b66c785 --- /dev/null +++ b/home-config/fish/functions/tide/configure/choices/all/show_time.fish | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | function show_time | ||
| 2 | _tide_title 'Show current time?' | ||
| 3 | |||
| 4 | _tide_option 1 No | ||
| 5 | _tide_display_prompt | ||
| 6 | |||
| 7 | set -a fake_tide_right_prompt_items time | ||
| 8 | |||
| 9 | _tide_option 2 '24-hour format' | ||
| 10 | set -g fake_tide_time_format %T | ||
| 11 | _tide_display_prompt | ||
| 12 | |||
| 13 | _tide_option 3 '12-hour format' | ||
| 14 | set -g fake_tide_time_format %r | ||
| 15 | _tide_display_prompt | ||
| 16 | |||
| 17 | _tide_menu (status function) | ||
| 18 | switch $_tide_selected_option | ||
| 19 | case No | ||
| 20 | set -g fake_tide_time_format '' | ||
| 21 | set -e fake_tide_right_prompt_items[-1] | ||
| 22 | case '24-hour format' | ||
| 23 | set -g fake_tide_time_format %T | ||
| 24 | case '12-hour format' | ||
| 25 | set -g fake_tide_time_format %r | ||
| 26 | end | ||
| 27 | switch $_tide_configure_style | ||
| 28 | case lean | ||
| 29 | _next_choice "$_tide_configure_style"/"$_tide_configure_style"_prompt_height | ||
| 30 | case classic rainbow | ||
| 31 | _next_choice "$_tide_configure_style"/"$_tide_configure_style"_prompt_separators | ||
| 32 | end | ||
| 33 | end | ||
