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

Partially fixes #3614
master
Dan Mills 11 years ago
parent 4224c2a1af
commit 2fb326513a
  1. 10
      lib/misc.zsh

@ -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

Loading…
Cancel
Save