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:
parent
e1a2a38a0f
commit
2c95b11442
1 changed files with 1 additions and 1 deletions
2
init.zsh
2
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
|
||||
|
|
Loading…
Reference in a new issue