Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

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.



view as:

> 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.


I can only confirm it works on zsh 5.0 on Ubuntu. And the /u/lo/b expansion works as well.

You probably didn't turn it on when you ran the config wizard thingy.

What config wizard thingy?

I figured this was a default setting.


I 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.


Legal | privacy