diff options
author | Dan Mills <evilhamsterman@gmail.com> | 2015-06-10 15:49:47 -0700 |
---|---|---|
committer | Dan Mills <evilhamsterman@gmail.com> | 2015-06-10 15:49:47 -0700 |
commit | 2fb326513a9e2cec473cff88669da890ad4ae834 (patch) | |
tree | 3842901034a6e3244170922b0b8c096564af5977 /lib/misc.zsh | |
parent | 4224c2a1af2a1b99c14ef81012af321c39856cf5 (diff) | |
download | zsh-2fb326513a9e2cec473cff88669da890ad4ae834.tar.gz zsh-2fb326513a9e2cec473cff88669da890ad4ae834.tar.bz2 zsh-2fb326513a9e2cec473cff88669da890ad4ae834.zip |
Only load url-quote-magic if it is available.
Partially fixes #3614
Diffstat (limited to 'lib/misc.zsh')
-rw-r--r-- | lib/misc.zsh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh index 0b7cb2696..92e336b64 100644 --- a/lib/misc.zsh +++ b/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 |