Only load url-quote-magic if it is available.

Partially fixes #3614
This commit is contained in:
Dan Mills 2015-06-10 15:49:47 -07:00
parent 4224c2a1af
commit 2fb326513a

View File

@ -1,6 +1,10 @@
## smart urls
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
## Load smart urls if available
for d in $fpath; do
if [[ -e "$d/url-quote-magic"]]; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
fi
done
## jobs
setopt long_list_jobs