add url-paste "if" based on ZSH_VERSION

This commit is contained in:
Matt Hamilton 2015-12-26 00:32:25 -05:00
parent add7f40799
commit 4a934de754

View File

@ -3,9 +3,12 @@
# #
# use smart URL pasting and escaping # use smart URL pasting and escaping
autoload -Uz url-quote-magic bracketed-paste-magic if [[ ${ZSH_VERSION} -ge 5.1 ]]; then
zle -N self-insert url-quote-magic autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic
fi
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
# Treat single word simple commands without redirection as candidates for resumption of an existing job. # Treat single word simple commands without redirection as candidates for resumption of an existing job.
setopt AUTO_RESUME setopt AUTO_RESUME