Checks zsh version for url-quote-magic before loading, makes compatible with old versions of zsh

This commit is contained in:
github.token 2012-03-09 15:20:48 -05:00
commit e854b58eb8

View file

@ -1,6 +1,7 @@
## smart urls ## smart urls
autoload -U url-quote-magic if [ -f "/usr/share/zsh/functions/Zle/url-quote-magic" ] ; then
zle -N self-insert url-quote-magic autoload -U url-quote-magic && zle -N self-insert url-quote-magic
fi
## file rename magick ## file rename magick
bindkey "^[m" copy-prev-shell-word bindkey "^[m" copy-prev-shell-word