Created
December 6, 2011 06:22
-
-
Save gja/1437024 to your computer and use it in GitHub Desktop.
Do a gem install or apt get install on command not found
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 command_not_found_handle() { | |
gem install "$@" || sudo apt-get install "$@"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment