Live data from Hacker News

The Fuck – Correct your previous console command

github.com

171–173 of 173 posts

Re: The Fuck – Correct your previous console command

#172

Cool idea. For those systems where you don't have the option of adding a 3rd party tool, it's probably worth knowing some of the standard bash shortcuts. The easy to remember ones are: !^ - the first argument from the previous command !$ - the last argument from the previous command !* - all of the arguments from the previous command !! - the entire previous command For example: $ apt-get install foo # Crap $ sudo !!

alt-. (Alt-period) is a good shortcut to keep in mind. On first press, it inputs the last arg from the previous command. If you press alt-. again, it inputs the last arg from the previous-to-previous command. And so on.

Huh, I didn't know about that. I use Esc+Period to the same effect.

Re: The Fuck – Correct your previous console command

#173
post #169

Earlier quoted context omitted.

Guys, we've spotted the Mormon here... he was this close to pooh-poohing that article about the positive productivity effects of coffee, but a curse word used in an extremely minimalist command-line tool has gone too far !

> Guys, we've spotted the Mormon here This was probably more of a misfired joke than anything ill-intentioned, but still, not ok to post here.

Misfired joke. Ah well.
Post reply on HN