mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-24 05:00:07 +00:00
always offer the flat heads option in the wizard (#2600)
This commit is contained in:
parent
d39e426835
commit
0fdca5b1e6
1 changed files with 26 additions and 29 deletions
|
@ -1289,54 +1289,51 @@ function ask_heads() {
|
||||||
fi
|
fi
|
||||||
local extra
|
local extra
|
||||||
add_widget 0 flowing -c "%BPrompt Heads%b"
|
add_widget 0 flowing -c "%BPrompt Heads%b"
|
||||||
if (( cap_diamond )); then
|
add_widget 0 print -Pl " head" "%B(1) Flat.%b |" " v"
|
||||||
add_widget 0 print -Pl " head" "%B(1) Sharp.%b |" " v"
|
add_widget 3 print -P "%B(1) Flat.%b"
|
||||||
add_widget 3 print -P "%B(1) Sharp.%b"
|
add_prompt_n left_head= right_head=
|
||||||
add_prompt_n left_head=$right_triangle right_head=$left_triangle
|
add_widget 0 print
|
||||||
add_widget 0 print
|
add_widget 2
|
||||||
add_widget 2
|
|
||||||
else
|
|
||||||
add_widget 0 print
|
|
||||||
add_widget 1
|
|
||||||
add_widget 0 print -P "%B(1) Flat.%b"
|
|
||||||
add_prompt left_head= right_head=
|
|
||||||
fi
|
|
||||||
add_widget 0 print -P "%B(2) Blurred.%b"
|
add_widget 0 print -P "%B(2) Blurred.%b"
|
||||||
add_prompt left_head=$fade_out right_head=$fade_in
|
add_prompt left_head=$fade_out right_head=$fade_in
|
||||||
if [[ $POWERLEVEL9K_MODE == nerdfont-* ]]; then
|
if (( cap_diamond )); then
|
||||||
extra+=3
|
extra+=3
|
||||||
add_widget 0 print -P "%B(3) Slanted.%b"
|
add_widget 0 print -P "%B(3) Sharp.%b"
|
||||||
add_prompt left_head=$down_triangle right_head=$up_triangle
|
add_prompt left_head=$right_triangle right_head=$left_triangle
|
||||||
extra+=4
|
if [[ $POWERLEVEL9K_MODE == nerdfont-* ]]; then
|
||||||
add_widget 0 print -P "%B(4) Round.%b"
|
extra+=4
|
||||||
add_prompt left_head=$right_circle right_head=$left_circle
|
add_widget 0 print -P "%B(4) Slanted.%b"
|
||||||
|
add_prompt left_head=$down_triangle right_head=$up_triangle
|
||||||
|
extra+=5
|
||||||
|
add_widget 0 print -P "%B(5) Round.%b"
|
||||||
|
add_prompt left_head=$right_circle right_head=$left_circle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
add_widget 0 print -P "(r) Restart from the beginning."
|
add_widget 0 print -P "(r) Restart from the beginning."
|
||||||
ask 12${extra}r
|
ask 12${extra}r
|
||||||
case $choice in
|
case $choice in
|
||||||
r) return 1;;
|
r) return 1;;
|
||||||
1)
|
1)
|
||||||
if (( cap_diamond )); then
|
left_head=
|
||||||
left_head=$right_triangle
|
right_head=
|
||||||
right_head=$left_triangle
|
options+='flat heads'
|
||||||
options+='sharp heads'
|
|
||||||
else
|
|
||||||
left_head=
|
|
||||||
right_head=
|
|
||||||
options+='flat heads'
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
|
left_head=$right_triangle
|
||||||
|
right_head=$left_triangle
|
||||||
|
options+='sharp heads'
|
||||||
|
;;
|
||||||
|
3)
|
||||||
left_head=$fade_out
|
left_head=$fade_out
|
||||||
right_head=$fade_in
|
right_head=$fade_in
|
||||||
options+='blurred heads'
|
options+='blurred heads'
|
||||||
;;
|
;;
|
||||||
3)
|
4)
|
||||||
left_head=$down_triangle
|
left_head=$down_triangle
|
||||||
right_head=$up_triangle
|
right_head=$up_triangle
|
||||||
options+='slanted heads'
|
options+='slanted heads'
|
||||||
;;
|
;;
|
||||||
4)
|
5)
|
||||||
left_head=$right_circle
|
left_head=$right_circle
|
||||||
right_head=$left_circle
|
right_head=$left_circle
|
||||||
options+='round heads'
|
options+='round heads'
|
||||||
|
|
Loading…
Reference in a new issue