From 8003cc0ec94bc4d84a406e8ffff5b8eb80e4be15 Mon Sep 17 00:00:00 2001 From: Jostein Berre Eliassen Date: Mon, 8 Aug 2011 21:04:52 +0200 Subject: [PATCH] do not use url-quote-magic if it is not available --- lib/misc.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/misc.zsh b/lib/misc.zsh index 88732e664..8ef1f3f9f 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -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