Live data from Hacker News

The Fuck – Correct your previous console command

github.com

41–50 of 173 posts

Re: The Fuck – Correct your previous console command

#41

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

I rather enjoy the abrasive edge of many parts of programming culture and prefer it not be dulled, even when it ends up cutting me.

There's no way I'd be comfortable using this at my sterile, overly PC corporate work place.

Re: The Fuck – Correct your previous console command

#42

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.

American prudishness. There's nothing immature in swearing in and of itself.

Re: The Fuck – Correct your previous console command

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

I don't often laugh at HN comments, but when I do, I do it hard. :)

Re: The Fuck – Correct your previous console command

#44

Earlier quoted context omitted.

I rather enjoy the abrasive edge of many parts of programming culture and prefer it not be dulled, even when it ends up cutting me.

There's no way I'd be comfortable using this at my sterile, overly PC corporate work place.

Then fork and rename it?

Re: The Fuck – Correct your previous console command

#45

Earlier quoted context omitted.

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

If it was called the fix it never would have made it to page 1

Also if anyone really cares, they could just fork it and make the change.

Re: The Fuck – Correct your previous console command

#46
I think i will continue using the Fish shell feature instead. It has this awesome feature of autocompleting your command with the bash history of yours.

It is safe because it will autocomplete a command that you wrote before.

Another cool thing with it is that, it will list the commands that you can run after entering a word. It does this by reading the man page of the command you write.

brew will list the brew commands for you to use with its explanations.

Re: The Fuck – Correct your previous console command

#47

Earlier quoted context omitted.

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

American prudishness. There's nothing immature in swearing in and of itself.

I'm not an American, and I'm not prude. I use quite a few swearwords regularly. However this just strikes me as an immature thing to do.

Re: The Fuck – Correct your previous console command

#49

Earlier quoted context omitted.

There's no way I'd be comfortable using this at my sterile, overly PC corporate work place.

Then fork and rename it?

You can name the shortcut whatever you want by modifying the alias:

   alias fuck='$(thefuck $(fc -ln -1))'
Post reply on HN