1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00

Merge pull request #4729 from sachin21/update_rake_command_in_rails_plugin

Support bundler
This commit is contained in:
Marc Cornellà 2016-05-30 15:33:55 +02:00
commit 9e8f417dab

View file

@ -13,6 +13,8 @@ function _rails_command () {
function _rake_command () {
if [ -e "bin/rake" ]; then
bin/rake $@
elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
bundle exec rake $@
else
command rake $@
fi