Live data from Hacker News

The Fuck – Correct your previous console command

github.com

51–60 of 173 posts

Re: The Fuck – Correct your previous console command

#51

I'm going to go out on a limb here and suggest that you rename it "The Fix." Then you could type "fixit" or just "fix".

Yes, using the word "fuck" for this just strikes me as a bit immature.

You must not really be a programmer ;)

Late night, vision is starting to blur and you've typed `git push origin master` incorrectly dozens of times already...

    $ FUCK!!!111ksjdkjsd

Re: The Fuck – Correct your previous console command

#52
post #6
post #4

Not being 100% sure which command this will correct to is dangerous. Also the need for this is largely negated by a shell with autosuggestions.

> Not being 100% sure which command this will correct to is dangerous. And yet the concept of the invocation `fuck --dry-run` is surely unappealing. :-)

Okay that was hilarious!

Re: The Fuck – Correct your previous console command

#59

Git already has a config to do this: help.autocorrect Automatically correct and execute mistyped commands after waiting for the given number of deciseconds (0.1 sec). If more than one command can be deduced from the entered text, nothing will be executed. If the value of this option is negative, the corrected command will be executed immediately. If the value is 0 - the command will be just shown but not executed. Th…

Cool, didn't know about that before.

Re: The Fuck – Correct your previous console command

#60
post #20
post #15

Amusing, but I would prefer something that would be able to automatically know what I was meaning to do and just do it without having to be vulgar.

Agreed. They could even sanitize it a little bit as 'wtf' or 'oops'.

WTF means the same thing. That is no less vulgar.
Post reply on HN