Live data from Hacker News

The Fuck – An app which corrects your previous console command

github.com

21–30 of 112 posts

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

#22

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.

there are a couple things I typo frequently enough I've seriously considered it...

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

#25
I use this regularly, for everything ranging from the forgotten sudo (instead of running "sudo !!") to typos across the board.

But it does get me into interesting situations! Just the other day I was demo-ing something to my team + Director of Engg on the projector, and I ran an incorrect command, followed by "fuck" to fix it, leading to so many stares :P

Just as an FYI, you can change the prompt from fuck to something else by changing your .bashrc eg.:

    eval "$(thefuck-alias fixit)"
I'm not changing my alias though! ;)

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

#30

This will definitely help some co workers who aren't CLI-savvy and always tell me their commands "didn't work".

You have the problem too? Everyone comes to me when the get a conflict because they don't read the part that says when you're done, do `git rebase --continue`
Post reply on HN