1
0
Fork 0
mirror of synced 2024-11-29 18:55:34 -05:00

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
This commit is contained in:
Matt Hamilton 2018-03-29 19:41:57 -04:00
parent e1a2a38a0f
commit 2c95b11442

View file

@ -2,7 +2,7 @@
# Zim initializition # Zim initializition
# #
autoload -Uz is-at-least autoload -UzR is-at-least
if ! is-at-least 5.2; then 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 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 return 1