Zsh has a binding called push-line, which I bind to ^e. It pushes the current contents of the command line onto a stack, which is popped when you next hit return. It's useful when you start typing and realize you need to do something else first. Just hit ^e, type the other thing, hit return, and you're back to the original line.
Zsh has a binding called push-line, which I bind to ^e. It pushes the current contents of the command line onto a stack, which is popped when you next hit return. It's useful when you start typing and realize you need to do something else first. Just hit ^e, type the other thing, hit return, and you're back to the original line.