Skip to content

Commit

Permalink
Only load url-quote-magic if it is available.
Browse files Browse the repository at this point in the history
Partially fixes ohmyzsh#3614
  • Loading branch information
evilhamsterman authored and steshaw committed Jun 16, 2015
1 parent 8e035cf commit a6cd630
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/misc.zsh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a6cd630

Please sign in to comment.