Live data from Hacker News

The Fuck – Correct your previous console command

github.com

101–110 of 173 posts

Re: The Fuck – Correct your previous console command

#101
post #93

Earlier quoted context omitted.

> WTF means the same thing. That is no less vulgar. Vulgarity of expressions is not a function only of what the expression means, but of the acceptability of the expression itself in various social contexts. WTF is, generally, acceptable as not excessively vulgar in social contexts where expanding the last letter of the initialism into its referent would not be, but the reverse isn't true; WTF is pretty close, theref…

> "WTF is, generally, acceptable as not excessively vulgar in social contexts" Which social contexts? Social contexts where people don't know what "WTF" expands to? It's not even a "minced oath".

"WTF" is less vulgar than "fuck" for roughly the same reason that "the f-word" is less vulgar than "fuck".

Re: The Fuck – Correct your previous console command

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

/sigh @hackernews turning into your typical reddit thread.

Re: The Fuck – Correct your previous console command

#103
post #97

I've started to wonder why we've never seen a more IDE-like autocomplete in consoles. I mean, why do I have to use man pages and all sorts of reference guides to remember the parameters for find or grep or whatever, or the order of commands for whatever? There really needs to be better communication between software and the environment it's running in.

I feel like fish gets part of the way there by grabbing stuff from the man pages and displaying descriptions in tab-complete options. But we're still a ways from the anti-Mac user interface[1]. Unless maybe you count Google's search bar.

[1]http://www.nngroup.com/articles/anti-mac-interface/

Re: The Fuck – Correct your previous console command

#104
post #87

Earlier quoted context omitted.

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

> American prudishness Sounds like you need a review of: https://news.ycombinator.com/newsguidelines.html Or perhaps just some common decency ? If you want a tool / platform to take off, using the word 'fuck' is not the way to go.

Which part of the guidelines? I reread the entire thing and didn't find where it would apply.

Re: The Fuck – Correct your previous console command

#105
post #93

Earlier quoted context omitted.

> "WTF is, generally, acceptable as not excessively vulgar in social contexts" Which social contexts? Social contexts where people don't know what "WTF" expands to? It's not even a "minced oath".

"WTF" is less vulgar than "fuck" for roughly the same reason that "the f-word" is less vulgar than "fuck".

I don't buy it.

"The f-word" is used exclusively by people being descriptive. Nobody says "So I was f-wording my spouse..." or stubs their toe and exclaims "oh f-word!". It is used when people are reporting what other people said. That is why it is considered less offensive; it is never properly used.

It signals to the easily offended, "I want to convey this information to you, but I am deliberately mangling words so that you know I too disapprove of the terrible word that was unfortunately used by somebody else."

"WTF" isn't used that way. When people say it, they are using it, not describing somebody's usage. There is zero implication of an apology or empathy with the audience's word-phobia.

Re: The Fuck – Correct your previous console command

#106

I will not let my coworkers see me typing expletives into terminal; much less if it is a woman. It is a nice idea, though. Will use it if it's called auto-correct or something.

I'm not sure what difference you think gender makes, unless you think women are delicate flowers that must be sheltered from bad language, but I do agree that it would be better named something more office friendly. I'd suggest 'argh', 'grr' or 'gah'.

Profanity is (deliberately) uncomfortable to people who are not part of your in-group. Women are more likely to be/feel excluded from in-groups in technology workplaces.

Re: The Fuck – Correct your previous console command

#107
post #19

Projects like this always make me think the developer's imagination has drastically failed them with respect to the scope of negative consequences that may result from using their tool.

Projects like this always make me think the developer's imagination is great and they must at least be intelligent enough to criticise their work (with humour).

Re: The Fuck – Correct your previous console command

#108

I will not let my coworkers see me typing expletives into terminal; much less if it is a woman. It is a nice idea, though. Will use it if it's called auto-correct or something.

Simply change the alias to something else:

    alias doh='$(thefuck $(fc -ln -1))'

Re: The Fuck – Correct your previous console command

#109
What I really want is a wrapper for sudo. Whenever I use sudo, if type the password correctly it works instantly; if I mistype the password, it delays for 2 seconds before asking again. Often it's faster to Ctrl+C UP ENTER than to wait for that annoying 2 seconds. So it would be nice if a wrapper existed to see if sudo gives access within 0.1 seconds, and if it doesn't, assume the password was wrong, kill the sudo process and launch the command again. Automate the Ctrl+C UP ENTER.

Re: The Fuck – Correct your previous console command

#110
post #77
post #30

Earlier quoted context omitted.

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.

If it defaulted to yes, then running it would be, fuck which is probably good enough. (Pressing the same key twice is pretty much the same as pressing one key, but pressing two different keys is harder.)

I used to alias `rm` to `rm -i`, until I realized that I just pressed without thinking.
Post reply on HN