survive ancient zsh in PATH (run wizard.zsh from a fork)

This commit is contained in:
romkatv 2019-11-29 10:55:30 +01:00
commit 183ec8ff6e
3 changed files with 35 additions and 51 deletions

View file

@ -4220,11 +4220,7 @@ _p9k_precmd_impl() {
case $? in
0)
(
local p=("${(@)parameters[(I)AWESOME_*|CODEPOINT_*]}")
if (( $#p )); then
typeset -x -- "$p"
fi
"$__p9k_root_dir"/internal/wizard.zsh -d "$__p9k_root_dir"
source "$__p9k_root_dir"/internal/wizard.zsh
)
if (( $? )); then
instant_prompt_disabled=1