6 ms·
Yes. Not only that but it has something even cooler: ESC + Q Let's say you are about to finish a really long command and realize you should have done one oth
by marrusl 13y ago
Yes. Not only that but it has something even cooler: ESC + Q
Let's say you are about to finish a really long command and realize you should have done one other command first.
ESC + Q clears the current line, lets you enter a command, and then inserts the cleared line again on the next prompt. You have to try it to realize how cool it is.
- jasonlotito 13y ago> Yes. Not only that but it has something even cooler: ESC + Q ESC+. does not work for me with zsh. zsh 4.3.11 (i386-apple-darwin12.0) Maybe it's the version. ESC+Q also doesn't clear the line. At the same time, the OP links slide deck fails for me at the cd /u/lo/b part. It simply doesn't work.
- marrusl 13y agoI can only confirm it works on zsh 5.0 on Ubuntu. And the /u/lo/b expansion works as well.
- kyrias 13y agoYou probably didn't turn it on when you ran the config wizard thingy.
- jasonlotito 13y agoWhat config wizard thingy? I figured this was a default setting.
- itsadok 13y agoI use Alt+# in bash to do something similar. It comments out the current line and gives you a new prompt. Then you can run whatever you wanted to do first, and then scroll up, delete the hash sign and hit Enter. Esc-Q sounds easier, though.