Skip to content
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

Print out the fucking command before running it #7

Merged
merged 1 commit into from Apr 17, 2015

Conversation

@fordhurley
Copy link
Contributor

@fordhurley fordhurley commented Apr 17, 2015

This makes thefuck act similar to fixing commands with either !! or fc, and I think helps to remove some of the "magic". For example, I use sudo !! all day long when on I'm linux systems:

$ apt-get install something
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?
$ sudo !!
sudo apt-get install something
[sudo] password for test:
@nvbn
Copy link
Owner

@nvbn nvbn commented Apr 17, 2015

Cool, thank you!

nvbn added a commit that referenced this pull request Apr 17, 2015
Print out the fucking command before running it
@nvbn nvbn merged commit 2f28681 into nvbn:master Apr 17, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
amtrivedi91 added a commit to amtrivedi91/thefuck that referenced this pull request Aug 31, 2016
Print out the fucking command before running it
amtrivedi91 added a commit to amtrivedi91/thefuck that referenced this pull request Aug 31, 2016
Print out the fucking command before running it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants