Live data from Hacker News

The Fuck – Correct your previous console command

github.com

1–10 of 173 posts

Re: The Fuck – Correct your previous console command

#5
post #2

[deleted]

While I agree with what I take to be your overall point, what would have been lost had you replaced your comment with the following, which does not assume anything about the poster's motivation?

    The utility is actually called "The Fuck", with no asterisk.  Please respect creators by not bowdlerizing the names they have chosen.

Re: The Fuck – Correct your previous console command

#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. :-)

Re: The Fuck – Correct your previous console command

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

Yeah I agree...the appeal of CLI is to tersely do a variety of powerful commands...and the tradeoff is that you have to be exact in your syntax. The seconds saved in not having to retype something is a relatively irrelevant optimization, which isn't bad in itself except that it also introduces a significant amount of ambiguity, which can be deadly in CLI work.

Re: The Fuck – Correct your previous console command

#8
I'd not use this.

It's basically a negative, aggressive emotional response, exactly a thing I'd rather not experience while working.

A failure due to not enough privileges might be a signal to rethink what you are doing; a mindless prepending of `sudo` is dangerous. Why not `su root` then?

Also, there was that screnshot of `sudo wget` as a response to a 403 error. This is exactly why you should re-examine a failed command instead of swearing around.

Re: The Fuck – Correct your previous console command

#9
post #3
post #2

[deleted]

On some resources it's not allowed to use `fuck`, so I put `*` automatically. Now title changed to "The Fuck...".

Also some mobile phones autocorrect to more "politically correct" versions, in which case this would've been replaced to "The Duck..." :P

Re: The Fuck – Correct your previous console command

#10
I think it's a funny little app. I could see it being kind of useful for the author but I think I would personally have trouble using an app that I don't actually know what it's going to do 100%. I think that you could mitigate this a bit by putting the list of commands it corrects right at the top of the readme.

I think most of us have probably been at the point where we were typing something like "I hate you, you god damn computer!" into the terminal or text editor. I see this as a moderately elegant helper in those situations

Post reply on HN