diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 8a49fcd..e416bce 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -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