New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Fuck plugin (https://github.com/nvbn/thefuck) #4170
Conversation
Dupe of/conflicts with #3861. @black-roland, @cristim, can you and other users of this come to a consensus on which to use? |
@robbyrussell et al, is there an OMZ policy on things named "fuck" and the like? Previous PR #2555 requesting a "fuck" alias was withdrawn, but no comments on why. |
Note that the |
The Fuck can partially replace sudo plugin. The Fuck can prefix with |
I don't have a fucking problem with the usage of the word fuck. |
Cool. I think that note in the README is sufficient to address the binding conflict then. |
Combined with plugin by @cristim. Also fixed compability with latest The Fuck version. |
Looks good to me. |
eval "$(thefuck-alias)" | ||
|
||
fuck-command-line() { | ||
FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this $FUCK
be made local? Or is it intended to stick around for reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this $FUCK be made local? Or is it intended to stick around for reference?
Ooops. It's a bug. Added local
.
Looks good to me too. Tested on OS X 10.9.5. |
The Fuck plugin (https://github.com/nvbn/thefuck)
The Fuck plugin — magnificent app which corrects your previous console command.
Press
ESC
twice to correct previous console command.