Live data from Hacker News

More Things I Wish I’d Known About Bash

zwischenzugs.com

1–10 of 50 posts

Re: More Things I Wish I’d Known About Bash

#7
post #5

Sigh. Hit ‘up’, ‘left’ until at the ‘p’ and type ‘e’ and return. One could also use , and to achieve the same result much quicker.

Yup. The moment you need editing capabilities more sophisticated than those three keys, though, I recommend switching to vi input mode (set -o vi) if you are familiar with vim keybindings. Although tapping Esc is not as quick as Ctrl (or, my chosen alternative, Ctrl-[), you have an entire library of editing commands already at your beck and call. I find that using 'f' or 'F' and '.' more quickly triangulates the problem area of the text in most cases.

Of course, if you are an emacs user, more power to you with the emacs bindings.

Re: More Things I Wish I’d Known About Bash

#10
Portuguese speakers have counted for a long time with this gem, simply the best Bash doc/cheat sheet I've ever seen on the web. This is probably my oldest bookmark still relevant after 15 years.

It's in portuguese and I'm not sure if there's an official translation, yet it's easy enough to decipher if you know bash, and Google Translate will do a pretty decent job.

I gift you "Aurelio's Swiss Army Knife of the Bash Shell" - http://aurelio.net/shell/canivete/

Post reply on HN