浏览代码

Support bundler

Satoshi Ohmori 9 年之前
父节点
当前提交
06659f7fc1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/rails/rails.plugin.zsh

+ 2 - 0
plugins/rails/rails.plugin.zsh

@@ -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