mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-20 10:31:33 +03:00
27 lines
772 B
Fish
27 lines
772 B
Fish
function prompt_height
|
|
_title 'Prompt Height?'
|
|
|
|
_option 1 'One line'
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'prompt_char'
|
|
# fake_tide_count_left_prompt_height
|
|
_display_prompt
|
|
|
|
_option 2 'Two lines'
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'newline' 'prompt_char'
|
|
_display_prompt
|
|
|
|
_display_restart_and_quit
|
|
|
|
switch (_menu 'Choice' 1/2/r/q)
|
|
case 1
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'prompt_char'
|
|
_next_choice 'prompt_spacing'
|
|
case 2
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'newline' 'prompt_char'
|
|
_next_choice 'prompt_connection'
|
|
case r
|
|
_begin
|
|
case q
|
|
_quit
|
|
end
|
|
end |