summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-04 09:13:16 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-04 09:13:16 +0300
commit298fa2f325c50b250a9bc9fe664ee96107886813 (patch)
treea89f208f0f08e0d985abb01cac5a7476c32eaa76
parent7c513a1e7964ec46354d24b735ea4ab42c5ff5d9 (diff)
bug fix: don't attempt to source .p10k.zsh when wizard exits to restart iTerm2
-rw-r--r--internal/configure.zsh9
-rwxr-xr-xinternal/wizard.zsh2
2 files changed, 8 insertions, 3 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh
index fd9e8593..f8483d75 100644
--- a/internal/configure.zsh
+++ b/internal/configure.zsh
@@ -66,6 +66,11 @@ function p9k_configure() {
typeset -x -- $p
fi
$__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir -f
- ) || return
- source $__p9k_cfg_path
+ )
+ local ret=$?
+ case $ret in
+ 0) source $__p9k_cfg_path;;
+ 69) return 0;;
+ *) return $ret;;
+ esac
}
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index f32cfd2a..b3138632 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -331,7 +331,7 @@ function install_font() {
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 0
+ exit 69
;;
esac
}