Created
September 11, 2011 21:46
-
-
Save ktheory/1210168 to your computer and use it in GitHub Desktop.
Never forget `bundle exec` before running rake again...
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
# In your ~/.bashrc: | |
do_rake () { | |
if [ -e Gemfile ]; then | |
bundle exec rake $@ | |
else | |
rake $@ | |
fi | |
} | |
alias rake='do_rake' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment