summaryrefslogtreecommitdiff
path: root/.config/fish/functions/tide/configure/choices/all/prompt_spacing.fish
blob: a5bb98bc787cbff342758644ef1aa4f81f7d868a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function prompt_spacing
    _tide_title 'Prompt Spacing'

    _tide_option 1 Compact
    _tide_display_prompt
    printf \e\[1A # Move cursor up 1 row
    _tide_display_prompt

    _tide_option 2 Sparse
    _tide_display_prompt
    _tide_display_prompt

    _tide_menu
    switch $_tide_selected_option
        case 1
            set -g fake_tide_prompt_add_newline_before false
        case 2
            set -g fake_tide_prompt_add_newline_before true
    end
    _next_choice all/icons
end