Created
June 20, 2013 02:30
-
-
Save JohnColvin/5819888 to your computer and use it in GitHub Desktop.
Automatically rehash rbenv when installing a gem
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
| gem-and-rehash() { | |
| gem "$@" | |
| if [ $1 ] && [ $1 = "install" ] ; then rbenv rehash ; fi | |
| } | |
| alias gem=gem-and-rehash |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind: https://github.com/sstephenson/rbenv-gem-rehash