From ff32968ba9cddadb14fe1ff4b3ad7d64401dd3d0 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Wed, 28 Jun 2017 16:55:48 -0500 Subject: [PATCH] Warning message for zsh < 5.2 as discussed in #184. We'll first give users this warning message. A future update will replace this by an error. Also, starting at that update, a new branch will be created for users that still want to stick with zsh < 5.2. Closes #194 --- init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.zsh b/init.zsh index e5b1734..8b48c94 100755 --- a/init.zsh +++ b/init.zsh @@ -2,6 +2,11 @@ # Zim initializition # +autoload -Uz is-at-least +if ! is-at-least 5.2; then + print "WARNING: Support for zsh < 5.2 will be removed in a future update. Update your version of zsh now to prevent any interruptions." >&2 +fi + # Define zim location ZIM="${ZDOTDIR:-${HOME}}/.zim"