If you’ve ever copied a shell command from somewhere and accidentally included a trailing newline, you know that hitting paste in your terminal can run the command before you have a chance to edit it. There are a few ways around this, but here’s a quick tip for iTerm 2 users.
This is a companion discussion topic for the original entry at https://brettterpstra.com/2014/11/14/safer-command-line-paste-in-iterm-2