1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

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
autoload -Uz url-quote-magic bracketed-paste-magic
if [[ ${ZSH_VERSION} -ge 5.1 ]]; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
fi
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
zle -N bracketed-paste bracketed-paste-magic
# Treat single word simple commands without redirection as candidates for resumption of an existing job.
setopt AUTO_RESUME