Last active
December 15, 2015 12:28
-
-
Save sean-kang/5260228 to your computer and use it in GitHub Desktop.
Overrides sudo command to pass PATH to sudo. I implemented this since alias didn't work as intended in bash scripts.
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
| function sudo() { | |
| /usr/bin/sudo env PATH=${PATH} "$@" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment