wizard bug fix: offer advanced powerline options when using nerdfont-v3

This commit is contained in:
Roman Perepelitsa 2023-04-03 12:34:11 +02:00
parent d031df752b
commit 8167383665

View file

@ -1190,7 +1190,7 @@ function ask_separators() {
add_widget 2 add_widget 2
add_widget 0 print -P "%B(2) Vertical.%b" add_widget 0 print -P "%B(2) Vertical.%b"
add_prompt left_sep='' right_sep='' left_subsep=$vertical_bar right_subsep=$vertical_bar add_prompt left_sep='' right_sep='' left_subsep=$vertical_bar right_subsep=$vertical_bar
if [[ $POWERLEVEL9K_MODE == nerdfont-complete ]]; then if [[ $POWERLEVEL9K_MODE == nerdfont-* ]]; then
extra+=3 extra+=3
add_widget 0 print -P "%B(3) Slanted.%b" add_widget 0 print -P "%B(3) Slanted.%b"
add_prompt left_sep=$down_triangle right_sep=$up_triangle left_subsep=$slanted_bar right_subsep=$slanted_bar add_prompt left_sep=$down_triangle right_sep=$up_triangle left_subsep=$slanted_bar right_subsep=$slanted_bar
@ -1254,7 +1254,7 @@ function ask_heads() {
fi 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-complete ]]; then if [[ $POWERLEVEL9K_MODE == nerdfont-* ]]; then
extra+=3 extra+=3
add_widget 0 print -P "%B(3) Slanted.%b" add_widget 0 print -P "%B(3) Slanted.%b"
add_prompt left_head=$down_triangle right_head=$up_triangle add_prompt left_head=$down_triangle right_head=$up_triangle
@ -1322,7 +1322,7 @@ function ask_tails() {
extra+=3 extra+=3
add_widget 0 print -P "%B(3) Sharp.%b" add_widget 0 print -P "%B(3) Sharp.%b"
add_prompt left_tail=$left_triangle right_tail=$right_triangle add_prompt left_tail=$left_triangle right_tail=$right_triangle
if [[ $POWERLEVEL9K_MODE == nerdfont-complete ]]; then if [[ $POWERLEVEL9K_MODE == nerdfont-* ]]; then
extra+=4 extra+=4
add_widget 0 print -P "%B(4) Slanted.%b" add_widget 0 print -P "%B(4) Slanted.%b"
add_prompt left_tail=$up_triangle right_tail=$down_triangle add_prompt left_tail=$up_triangle right_tail=$down_triangle