What does HackerNews think of thefuck?
Magnificent app which corrects your previous console command.
I prefer to just type "fuck":
$ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
$ fuck
sudo apt-get install vim
[sudo] password for nvbn:
Reading package lists... Done
Does it handle questions that would result in piping commands together like “how do I get the third element in a JSON response from a curl command?”
This will be a great command alongside “fuck”
Is fsck something you'd avoid because of its name, or is the single letter change enough to make it safe?
“Magnificent app which corrects your previous console command”
Magnificent app which corrects your previous console command
I think MFA is important and have it enabled for every service that offers it, but we have MFA set up for our CLI access to AWS and I used to let out a volume of curses frequently when my token expired.
I eventually ended up adding a bash alias “damn”[0] that pipes my current MFA token into the AWS CLI so whenever it expires I can just type “damn” and be logged back in.
I like the magic link approach Slack and Medium use - although I have frequently cursed the inconvenience of having to log into gmail.
[0] why damn? Fuck was taken: https://github.com/nvbn/thefuck
Your microwave does sound badly designed though.
It would make a good prank to set up on someone that left their machine unlocked. Not sure if it’s more funny than changing their background to goatse.
I also find "thefuck" is interesting but I love to control my fate :) (https://github.com/nvbn/thefuck)
(me earlier this month: https://twitter.com/sailoremo/status/908390247548911617)
https://github.com/nvbn/thefuck
[TL;DR -- typo a command, type 'fuck', will run the command you should have run]
(and if I'm wrong and/or the bash patch just makes things lots easier, then I'd love to see it posted somewhere people who know the bash source well can see if they can help turn it into a real feature, because custom error handlers seem as awesome as custom completion handlers)