aboutsummaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-10-02 19:34:25 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-10-02 19:34:25 +0300
commit843dcf016710a4fe39f8ad65da2929f9128436fd (patch)
tree4b1e980b279899aea363730e42dff26f2a8e8026 /internal/wizard.zsh
parent957249a95c27c430aa55b55c0f4df9f5ced2bb39 (diff)
survive broken FPATH (#10
Diffstat (limited to 'internal/wizard.zsh')
-rw-r--r--internal/wizard.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 2ffb606c..99cf63ad 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1449,7 +1449,7 @@ function print_instant_prompt_link() {
}
function ask_instant_prompt() {
- if ! is-at-least 5.4; then
+ if [[ $ZSH_VERSION != (5.<4->*|<6->.*) ]]; then
instant_prompt=off
options+=instant_prompt=auto-off
return 0
@@ -2008,9 +2008,8 @@ else
fi
zmodload zsh/terminfo || return
-autoload -Uz is-at-least || return
-if is-at-least 5.7.1 && [[ $COLORTERM == (24bit|truecolor) ]]; then
+if [[ $ZSH_VERSION == (5.7.<1->*|<6->.*) && $COLORTERM == (24bit|truecolor) ]]; then
local -ir has_truecolor=1
else
local -ir has_truecolor=0