Live data from Hacker News

The Fuck – Correct your previous console command

github.com

21–30 of 173 posts

Re: The Fuck – Correct your previous console command

#21
post #3

Earlier quoted context omitted.

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

+1 for "The Duck".

Re: The Fuck – Correct your previous console command

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

Or syntax highlighting as found in fish, red if your command will not run, blue otherwise, params in blue. Duno I wish more shells had basic syntax highlighting for input commands.

Re: The Fuck – Correct your previous console command

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

I'd like it more if it just expanded to the 'correct' command and required another return to actually run:

$ apt-get install foo $ fuck -> sudo apt-get install foo

zsh does something similar for history commands, I think:

$ echo foo foo $ echo !$ -> $ echo foo

Re: The Fuck – Correct your previous console command

#26

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.

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

Re: The Fuck – Correct your previous console command

#27

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 g…

Check out the only issue open: https://github.com/nvbn/thefuck/issues/1

I like it, but I have to know every command it modifies/checks, I cannot run a blackbox command and hope.

Re: The Fuck – Correct your previous console command

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

I think a good solution to this would be to have it display the command it's going to run with a y/n prompt. It would only add one extra keystroke and make the utility a lot safer. I think I'll make a pull request or fork or something that does this this weekend if somebody hasn't already by then.
Post reply on HN