From 288f938edb2967649a8d3533e7f655473fc36d90 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 3 Jul 2020 14:24:56 +0300 Subject: [PATCH] zsh URL quoting --- zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index b3c8d6c..95fc046 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -48,6 +48,13 @@ bindkey -M isearch "^[[A" history-incremental-pattern-search-backward bindkey -M isearch "^[[B" history-incremental-pattern-search-forward # }}} +# URL quoting {{{ +autoload -U url-quote-magic +autoload -U bracketed-paste-magic +zle -N self-insert url-quote-magic +zle -N bracketed-paste bracketed-paste-magic +# }}} + # Prompt {{{ function zle-line-init zle-keymap-select { mode_vi="${${KEYMAP/vicmd/+}/(main|viins)/-}" -- 2.44.0