Re:How zsh is more useful than bash
by jasonlotito on Saturday May 11, 2013 @11:40AM
(#5690933)
Does zsh have bash's ESC+.?
[ Parent
| on HN ]
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.
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.
Re:How zsh is more useful than bash
by jasonlotito on Saturday May 11, 2013 @12:27PM
(#5691102)
> 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.
Re:How zsh is more useful than bash
by jasonlotito on Sunday May 12, 2013 @04:33PM
(#5695721)
What config wizard thingy?
I figured this was a default setting.