Created
December 19, 2013 14:20
-
-
Save BjornW/8039802 to your computer and use it in GitHub Desktop.
Sudo in Ubuntu is compiled with --with-secure-path therefor it does not work as expected (at least to me), this makes it sane again. Just add in your ~/.bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fixes sudo so it works with user' path | |
alias sudo='sudo env PATH=$PATH $@' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment