I recently changed my shell from bash to zsh. I have lots of snippets (Alfred, Dash...) for terminal use that ends with a line break. With bash that snippets works fine, I meant, paste the command and execute it (as ends with a line break).

The point is that in zsh, doesn't work as I expected. The snippets paste the code and add a line break, but without executing the command. Is there any way of fixing this?

I'm using iTerm.

  • 2
    That's a feature of zsh's editor. You can paste multiple lines then go back and edit those lines before execution.
    – fd0
    Jul 23, 2019 at 12:43

1 Answer 1


Adding unset zle_bracketed_paste in ~/.zshrc file ZSH will treat newlines in snippets as ↩.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .