From 070fc333eccfef9f9ccb4deed619acb71bbe2794 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 23 Oct 2013 12:17:15 -0700 Subject: [PATCH] magically auto-quote URLs pasted into zsh --- zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 75e7f5b..c4490ea 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -160,6 +160,11 @@ for op in \| \< \> \& do bindkey "$op" self-insert-redir done +# 3.9. Auto quote pasted URLs +# --------------------------- +autoload -U url-quote-magic +zle -N self-insert url-quote-magic + # 4. Terminal Settings