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
1 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,10 @@
## smart urls
## 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