mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-20 10:31:33 +03:00
28 lines
637 B
Fish
28 lines
637 B
Fish
function prompt_spacing
|
|
_title 'Prompt Spacing'
|
|
|
|
_option 1 'Compact'
|
|
_display_prompt fake_tide_newline true
|
|
_cursor_up 1
|
|
_display_prompt fake_tide_newline false
|
|
|
|
_option 2 'Sparse'
|
|
_display_prompt fake_tide_newline true
|
|
_cursor_up 1
|
|
_display_prompt fake_tide_newline true
|
|
|
|
_display_restart_and_quit
|
|
|
|
switch (_menu 'Choice' 1/2/r/q)
|
|
case 1
|
|
set -g fake_tide_newline false
|
|
_next_choice 'finish'
|
|
case 2
|
|
set -g fake_tide_newline true
|
|
_next_choice 'finish'
|
|
case r
|
|
_begin
|
|
case q
|
|
_quit
|
|
end
|
|
end |