What I find super irritating is that some terminals will automatically execute a command if you paste it from the clipboard and there is a newline char at the end. IMO command line interfaces should not do this.
bind 'set enable-bracketed-paste on'https://en.wikipedia.org/wiki/Bracketed-paste
Put in .inputrc: