aboutsummaryrefslogtreecommitdiff
path: root/internal/configure.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-11-15 09:25:17 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-11-15 09:26:51 +0300
commita9f208c8fc509b9c591169dd9758c48ad4325f76 (patch)
tree7dd3cb5855f3457535043364d8e7ce1657ba6688 /internal/configure.zsh
parent6520323fdbc02190528ff3ded57361088d53cdfb (diff)
don't auto-start configuration wizard if it's likely that zshrc is broken
This change is an attempt to automate this: https://github.com/romkatv/powerlevel10k#configuration-wizard-runs-automatically-every-time-zsh-is-started
Diffstat (limited to 'internal/configure.zsh')
-rw-r--r--internal/configure.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh
index 4fb7cb6e..3e880f23 100644
--- a/internal/configure.zsh
+++ b/internal/configure.zsh
@@ -59,7 +59,10 @@ function _p9k_can_configure() {
$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 }
+ [[ -t 0 && -t 1 ]] || {
+ $0_error "no TTY"
+ return 2
+ }
return 0
} always {
unfunction $0_error