Pasting multi-lines in terminal

The main problem while working at terminal, there is just one line to do everything. As everybody knows that makes problem about indenting. Another problem, when multi-lines copied from anywhere bash directly execute all codes so it can occur problem about datas.

In this situation the easiest way is using C-x C-e command that open default editor which define on the system.

for bash:

For zsh:

! Dont forget to restart bash or zsh

I hope this adjustment creates a better working environment for you.