Compare commits

...

4 Commits

@ -38,7 +38,8 @@ source $__p9k_root_dir/internal/configure.zsh || return
typeset -r font_base_url='https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts'
typeset -ri wizard_columns=$((COLUMNS < 80 ? COLUMNS : 80))
typeset -ri prompt_indent=2
typeset -i prompt_indent=2
typeset -i rprompt_indent=2
typeset -ra bg_color=(240 238 236 234)
typeset -ra frame_color=(244 242 240 238)
@ -131,7 +132,7 @@ function print_prompt() {
(( left_frame )) || left=('' $left[2] '' '%76F%f █')
(( right_frame )) || right=($right[1] '' '' '')
fi
local -i right_indent=prompt_indent
local -i right_indent=rprompt_indent
local -i width=$(prompt_length ${(g::):-$left[1]$left[2]$right[1]$right[2]})
while (( wizard_columns - width <= prompt_indent + right_indent )); do
(( --right_indent ))
@ -1550,6 +1551,124 @@ while true; do
fi
_p9k_init_icons
ask_narrow_icons || continue
# Set screen size to 80x25, run `p10k configure`, answer "yyyy22".
# gsettings set org.gnome.desktop.interface monospace-font-name 'MesloLGS NF 48'
local few_icons=("$extra_icons[@]")
ask_extra_icons || continue
local many_icons=("$extra_icons[@]")
local concise=("$prefixes[@]")
ask_prefixes || continue
local fluent=("$prefixes[@]")
color=3
reset
echo
flowing -c "Lean Style"
(
style=lean
extra_icons=("$few_icons[@]")
prefixes=("$concise[@]")
show_time=
num_lines=1
prompt_indent=4
rprompt_indent=4
echo
print_prompt
)
echo
(
style=lean
extra_icons=("$many_icons[@]")
prefixes=("$fluent[@]")
show_time=1
num_lines=2
prompt_indent=4
rprompt_indent=4
echo
print_prompt
)
echo
flowing -c "Classic Style"
(
style=classic
extra_icons=("$few_icons[@]")
prefixes=("$concise[@]")
show_time=
num_lines=1
prompt_indent=4
rprompt_indent=4
echo
print_prompt
)
echo
(
style=classic
extra_icons=("$many_icons[@]")
prefixes=("$fluent[@]")
show_time=1
num_lines=2
# slanted sep
left_sep=$down_triangle
right_sep=$up_triangle
left_subsep=$slanted_bar
right_subsep=$slanted_bar
# blurred heads
left_head=$fade_out; right_head=$fade_in;
# blurred tails
left_tail=$fade_in; right_tail=$fade_out;
gap_char="·"
prompt_indent=2
rprompt_indent=2
echo
print_prompt
)
echo
flowing -c "Rainbow Style"
(
style=rainbow
extra_icons=("$few_icons[@]")
prefixes=("$concise[@]")
show_time=
num_lines=1
prompt_indent=4
rprompt_indent=4
echo
print_prompt
)
echo
(
style=rainbow
extra_icons=("$many_icons[@]")
prefixes=("$fluent[@]")
show_time=1
num_lines=2
# slanted sep
left_sep=$down_triangle
right_sep=$up_triangle
left_subsep=$slanted_bar
right_subsep=$slanted_bar
# slanted heads
left_head=$down_triangle
right_head=$up_triangle
# slanted tails
left_tail=$up_triangle
right_tail=$down_triangle
# gap_char="·"
gap_char="─"
left_frame=0; right_frame=1
prompt_indent=4
rprompt_indent=2
echo
print_prompt
)
tput civis
trap 'tput cnorm' EXIT INT
read
return 1
ask_style || continue
if [[ $style != pure ]]; then
ask_color || continue

Loading…
Cancel
Save