aboutsummaryrefslogtreecommitdiff
path: root/gitstatus/mbuild
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 /gitstatus/mbuild
parent957249a95c27c430aa55b55c0f4df9f5ced2bb39 (diff)
survive broken FPATH (#10
Diffstat (limited to 'gitstatus/mbuild')
-rwxr-xr-xgitstatus/mbuild4
1 files changed, 1 insertions, 3 deletions
diff --git a/gitstatus/mbuild b/gitstatus/mbuild
index d3de3317..40316fdf 100755
--- a/gitstatus/mbuild
+++ b/gitstatus/mbuild
@@ -94,9 +94,7 @@
setopt no_unset extended_glob pipe_fail prompt_percent typeset_silent \
no_prompt_subst no_prompt_bang pushd_silent warn_create_global
-autoload -Uz is-at-least
-
-if ! is-at-least 5.1 || [[ $ZSH_VERSION == 5.4.* ]]; then
+if [[ $ZSH_VERSION != (5.<1->*|<6->.*) || $ZSH_VERSION == 5.4(|.*) ]]; then
print -ru2 -- "[error] unsupported zsh version: $ZSH_VERSION"
return 1
fi