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

Projects
None yet
2 participants
@fordhurley
Copy link
Contributor

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

This comment has been minimized.

Copy link
Owner

nvbn commented Apr 17, 2015

Cool, thank you!

nvbn added a commit that referenced this pull request Apr 17, 2015

Merge pull request #7 from fordhurley/print-command
Print out the fucking command before running it

@nvbn nvbn merged commit 2f28681 into nvbn:master Apr 17, 2015

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

Merge pull request nvbn#7 from fordhurley/print-command
Print out the fucking command before running it

amtrivedi91 added a commit to amtrivedi91/thefuck that referenced this pull request Aug 31, 2016

Merge pull request nvbn#7 from fordhurley/print-command
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