Disable 'magic' Zsh bindings to avoid painfully slow pasting

This commit is contained in:
Danielle McLean 2023-09-18 15:34:06 +10:00
parent 09d28eaae4
commit 3cb0586a49
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -23,17 +23,6 @@ autoload fancy-ctrl-z
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
# Allow for magic such as url-quote-magic to apply when your terminal supports
# bracketed paste.
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
# url-quote-magic will automatically quote special chars in URLs pasted into
# the terminal.
autoload -Uz url-quote-magic
url-quote-magic-with-highlight() { url-quote-magic; _zsh_highlight }
zle -N self-insert url-quote-magic-with-highlight
__fzf-z() {
z -l | tac | cut -c 12- | fzf --preview 'tree -FCL 2 {}'
}