Fix bracketed paste in zsh vim

This commit is contained in:
Thomas Avé 2026-06-02 15:17:56 +07:00
parent feca4dbd3f
commit 0bd723f281
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@
source ${./files/keys.zsh}
eval "$(direnv hook zsh)"
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
# Fix zsh-vi-mode bracketed paste: the trailing ~ of \e[201~ leaks
# into vicmd and toggles case of the last pasted character.
bindkey -M viins '^[[200~' .bracketed-paste
bindkey -M vicmd '^[[200~' .bracketed-paste
}
function o() {
${pkgs.handlr-regex}/bin/handlr open $@ < /dev/null &> /dev/null & disown