From 11aaff5614009825e06c7dca46112fc70bedfb77 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Sun, 27 Dec 2015 03:44:32 -0500 Subject: [PATCH] Compare version as float ZSH_VERSION isn't guarenteed to be a float (5.1.1). In this case, it should be safe to just strip it to a float: 5.1(.1) closes issue #3 --- modules/environment/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 58bc501..1acfeb5 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -3,7 +3,7 @@ # # use smart URL pasting and escaping -if [[ ${ZSH_VERSION} -ge 5.1 ]]; then +if [[ ${ZSH_VERSION%.*} -ge 5.1 ]]; then autoload -Uz bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic fi