浏览代码

Merge pull request #2959 from crkochan/fix_rake_command

Fix for recusion limit hit for _rake_command alias
Robby Russell 10 年之前
父节点
当前提交
1b65c55fcf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/rails/rails.plugin.zsh

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

@@ -6,7 +6,7 @@ function _rails_command () {
   elif [ -e "script/server" ]; then
     ruby script/$@
   else
-    rails $@
+    command rails $@
   fi
 }
 
@@ -14,7 +14,7 @@ function _rake_command () {
   if [ -e "bin/rake" ]; then
     bin/rake $@
   else
-    rake $@
+    command rake $@
   fi
 }