From 599add14b99b277f85078311bac89b4f30923f76 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Sun, 27 Dec 2015 03:56:18 -0500 Subject: [PATCH] use is-at-least to determine version --- modules/environment/init.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 1acfeb5..61a0112 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -3,9 +3,12 @@ # # use smart URL pasting and escaping -if [[ ${ZSH_VERSION%.*} -ge 5.1 ]]; then - autoload -Uz bracketed-paste-magic - zle -N bracketed-paste bracketed-paste-magic +autoload -Uz is-at-least +if [[ ${ZSH_VERSION} != 5.1.1 ]]; then + if is-at-least 5.1; then + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic + fi fi autoload -Uz url-quote-magic zle -N self-insert url-quote-magic