From 2c95b11442b7a007fdbf4fce574f70a589a570b9 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 29 Mar 2018 19:41:57 -0400 Subject: [PATCH] hard-fail on missing zshbuiltin is-at-least From `man zshbuiltins`: with -R, an error message is printed and command processing aborted immediately the search fails, i.e. at the autoload command rather than at function execution.. Fixes #249 --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 0ee95ed..3893bb5 100755 --- a/init.zsh +++ b/init.zsh @@ -2,7 +2,7 @@ # Zim initializition # -autoload -Uz is-at-least +autoload -UzR is-at-least if ! is-at-least 5.2; then print "ERROR: Zim didn't start. You're using zsh version ${ZSH_VERSION}, and versions < 5.2 are not supported. Update your zsh." >&2 return 1