diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 6 | ||||
-rwxr-xr-x | internal/wizard.zsh | 20 |
2 files changed, 19 insertions, 7 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c257e6ab..5235aa01 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3740,7 +3740,7 @@ _p9k_set_instant_prompt() { RPROMPT=$saved_rprompt } -typeset -gri __p9k_instant_prompt_version=12 +typeset -gri __p9k_instant_prompt_version=13 _p9k_dump_instant_prompt() { local user=${(%):-%n} @@ -4305,7 +4305,7 @@ function _p9k_on_expand() { () { (( __p9k_ksh_arrays )) && setopt ksh_arrays (( __p9k_sh_glob )) && setopt sh_glob - print -rP -- $ruler + print -rnP -- $ruler } fi } @@ -5472,7 +5472,7 @@ _p9k_must_init() { [[ $sig == $_p9k__param_sig ]] && return 1 _p9k_deinit fi - _p9k__param_pat=$'v15\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1' + _p9k__param_pat=$'v16\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1' _p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1' _p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1' _p9k__param_pat+=$'$DEFAULT_USER\1${ZLE_RPROMPT_INDENT:-1}\1$P9K_SSH\1$__p9k_ksh_arrays' diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 516b1f58..dde6386d 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -350,10 +350,22 @@ function install_font() { print -P "" print -P "Please %Brestart iTerm2%b for the changes to take effect." print -P "" - flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b." - flowing +c -i 5 " 2. Open %BiTerm2%b." - print -P "" - exit 69 + while true; do + flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b." + flowing +c -i 5 " 2. Open %BiTerm2%b." + print -P "" + local key= + read -k key${(%):-"?%BWill you restart iTerm2 before proceeding? [yN]: %b"} || quit -c + if [[ $key = (y|Y) ]]; then + print -P "" + print -P "" + exit 69 + fi + print -P "" + print -P "" + print -P "It's important to %Brestart iTerm2%b for the changes to take effect." + print -P "" + done ;; esac } |