The main problem while working at terminal, there is just one line to do everything. As everybody knows that situation makes problem about indenting. Another problem, when multi-lines copied from anywhere bash directly execute all codes so it can occur problem about data.
In this situation the easiest way is using C-x C-e command that open default editor which define on the system.
for bash:
1 2 3 4 5 6 7 |
echo 'export EDITOR=nano >> ~/.bashrc' echo 'export EDITOR='emacs -nw >> ~/.bashrc' echo 'export EDITOR='gedit' >> ~/.bashrc' echo 'export EDITOR='vi' >> ~/.bashrc' |
For zsh:
1 2 3 4 5 6 7 |
echo 'export EDITOR=nano >> ~/.zshrc' echo 'export EDITOR='emacs -nw >> ~/.zshrc' echo 'export EDITOR='gedit' >> ~/.zshrc' echo 'export EDITOR='vi' >> ~/.zshrc' |
! Don’t forget to restart bash or zsh
I hope this adjustment creates a better working environment for you.