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

rails: detect gems.rb in _rake_command (#8223)

This commit is contained in:
Angelos Orfanakos 2019-10-18 22:56:30 +03:00 committed by Marc Cornellà
parent 6b6f2b6dfd
commit 74165aba4a

View file

@ -17,7 +17,7 @@ function _rake_command () {
bin/stubs/rake $@
elif [ -e "bin/rake" ]; then
bin/rake $@
elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
elif type bundle &> /dev/null && ([ -e "Gemfile" ] || [ -e "gems.rb" ]); then
bundle exec rake $@
else
command rake $@