From 0f0f986fa41e6dafc1252ca55708609d43524307 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Wed, 2 Dec 2020 12:14:20 +0200 Subject: [PATCH] zsh paste magic --- .zshrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.zshrc b/.zshrc index e22c7f4..0659c43 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,8 @@ # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 + +# so that i can autoload -Uz local functions +fpath=( ~/.config/zsh/functions $fpath) + # Virtualenv support function virtual_env_prompt () { REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) } @@ -190,3 +194,11 @@ export JOBS=8 function vless { /usr/share/nvim/runtime/macros/less.sh $@ } + + +# Paste handling +autoload -Uz bracketed-paste-magic +zle -N bracketed-paste bracketed-paste-magic + +autoload -Uz bracketed-paste-url-magic +zle -N bracketed-paste bracketed-paste-url-magic