use is-at-least to determine version

This commit is contained in:
Matt Hamilton 2015-12-27 03:56:18 -05:00
parent 11aaff5614
commit 599add14b9
1 changed files with 6 additions and 3 deletions

View File

@ -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