From 77c95428bbafca8a359301a7029ff2bab364b4c4 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. Next update will replace this by an error. Also, starting at next update, a new branch will be created for users that still want to stick with zsh < 5.2. --- init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.zsh b/init.zsh index e5b1734..1615a8b 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 moved to an unsupported branch on the next update. Please consider updating your zsh version." >&2 +fi + # Define zim location ZIM="${ZDOTDIR:-${HOME}}/.zim"