Live data from Hacker News

The Fuck – An app which corrects your previous console command

github.com

31–40 of 112 posts

Re: The Fuck – An app which corrects your previous console command

#33

Earlier quoted context omitted.

For those who don't know, you can make git pish have the same effect as git push by creating an alias between pish and push. Useful to do for any misspellings you make more than once. $ git config --global alias.pish push

Cannot for the life of me tell if this is a serious suggestion.

It is-- what is the perceived downside?

Re: The Fuck – An app which corrects your previous console command

#34
post #27

I often set `alias fucking='sudo'`. >$ make me a sandwich permission denied >$ fucking make me a sandwich [or] >$ fucking !!

I have the same.

    # Because sometimes you gotta be harsh.
    alias fucking="sudo"
    
    # And sometimes you gotta be nice.
    alias please="sudo"

Re: The Fuck – An app which corrects your previous console command

#36

Earlier quoted context omitted.

Cannot for the life of me tell if this is a serious suggestion.

It is-- what is the perceived downside?

You have a giant list of common typos, making you a worse and worse typer as years go on, until you are mashing your head on the keyboard to type anything.

Re: The Fuck – An app which corrects your previous console command

#38
post #18

[~user/]$ rm -rf / rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe [~user/]$ fuck sudo rm -rf --no-preserve-root / fuck!

Rule for this behavior disabled by default, but you can enable it. Also you can disable confirmation or use `fuck -y` for more fun.

I like how you named and styled the command after how many terminal users actually approach these situations.

1. Hurriedly type something to solve a pressing problem. It doesn't work but tells you enough the fix should be obvious to a machine.

2. Mutter or shout "Fuck!" in head depending on how obvious problem was, how often it repeats, or just how long it takes to redo it.

3. Perform the correct action.

Your model is like the Underwear Gnomes model for problem-solving applied to terminals. They always missing step 2. Except, on step 2, you just "fuck" to get profit... err, you get to finish at Step 2 with one word. Finish faster with this technique to move on to next job in workflow.

Re: The Fuck – An app which corrects your previous console command

#40

Earlier quoted context omitted.

For those who don't know, you can make git pish have the same effect as git push by creating an alias between pish and push. Useful to do for any misspellings you make more than once. $ git config --global alias.pish push

Cannot for the life of me tell if this is a serious suggestion.

I've actually done this for a couple commands I screw up often enough -- I have this in my bashrc:

  alias dumbtypo="echo 'LEARN TO TYPE, MORON'"
  alias sl="dumbtypo; ls"
  alias rbuy="dumbtypo; ruby"
  alias pytohn="dumbtypo; python"
  alias brwe="dumbtypo; brew"
  alias arhcey="dumbtypo; archey"
Post reply on HN