do not use url-quote-magic if it is not available

This commit is contained in:
Jostein Berre Eliassen 2011-08-08 21:04:52 +02:00
commit 8003cc0ec9

View file

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