2020-05-19 02:17:50 +03:00
|
|
|
function prompt_height
|
|
|
|
_title 'Prompt Height?'
|
|
|
|
|
|
|
|
_option 1 'One line'
|
2020-05-19 06:03:25 +03:00
|
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'prompt_char'
|
|
|
|
# fake_tide_count_left_prompt_height
|
2020-05-19 02:17:50 +03:00
|
|
|
_display_prompt
|
|
|
|
|
|
|
|
_option 2 'Two lines'
|
2020-05-19 06:03:25 +03:00
|
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'newline' 'prompt_char'
|
2020-05-19 02:17:50 +03:00
|
|
|
_display_prompt
|
|
|
|
|
|
|
|
_display_restart_and_quit
|
|
|
|
|
|
|
|
switch (_menu 'Choice' 1/2/r/q)
|
|
|
|
case 1
|
2020-05-19 06:03:25 +03:00
|
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'prompt_char'
|
2020-05-19 02:17:50 +03:00
|
|
|
_next_choice 'prompt_spacing'
|
|
|
|
case 2
|
2020-05-19 06:03:25 +03:00
|
|
|
set -g fake_tide_left_prompt_items 'pwd' 'git_prompt' 'newline' 'prompt_char'
|
2020-05-19 02:17:50 +03:00
|
|
|
_next_choice 'prompt_connection'
|
|
|
|
case r
|
|
|
|
_begin
|
|
|
|
case q
|
|
|
|
_quit
|
|
|
|
end
|
|
|
|
end
|