diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-08-27 10:57:12 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-08-27 10:57:12 +0300 |
commit | f2bf0197581abb8bde529e6b492710948549ba7f (patch) | |
tree | 869aa5c15e42363e45b98954fd916412a904aa54 /internal/configure.zsh | |
parent | 2a4c962c210785e0ee222c6145b8b10d3f057bc4 (diff) |
wizard: simplify instant prompt screen; make sure all screens work with 47x14 terminal size
Diffstat (limited to 'internal/configure.zsh')
-rw-r--r-- | internal/configure.zsh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh index 9c92c233..63a73978 100644 --- a/internal/configure.zsh +++ b/internal/configure.zsh @@ -1,5 +1,7 @@ -typeset -gr __p9k_wizard_columns=51 -typeset -gr __p9k_wizard_lines=12 +# Fewer than 47 columns will probably work. Haven't tried it. +typeset -gr __p9k_wizard_columns=47 +# The bottleneck is ask_tails with nerd fonts. Everything else works fine with 12 lines. +typeset -gr __p9k_wizard_lines=14 typeset -gr __p9k_zd=${ZDOTDIR:-$HOME} typeset -gr __p9k_zd_u=${${${(q)__p9k_zd}/#(#b)${(q)HOME}(|\/*)/'~'$match[1]}//\%/%%} typeset -gr __p9k_zshrc=${${:-$__p9k_zd/.zshrc}:A} @@ -44,7 +46,7 @@ function _p9k_can_configure() { done (( LINES >= __p9k_wizard_lines && COLUMNS >= __p9k_wizard_columns )) || { - $0_error "terminal size too small; must be at least $__p9k_wizard_columns x $__p9k_wizard_lines" + $0_error "terminal size too small; must be at least $__p9k_wizard_columns columns by $__p9k_wizard_lines lines" return 1 } [[ -t 0 && -t 1 ]] || { $0_error "no TTY"; return 2 } |