1

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.

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

1 Answer 1

2

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.