14

有没有bash_completion为 Rails 3 准备好的脚本?

4

2 回答 2

21

我写了这个https://github.com/jweslley/rails_completion

对 Ruby on Rails 的 Bash 补全支持。

完成例程为完成提供支持:

  • rails 命令(例如:new、server、console、generate、runner、...)
  • 轨道生成器(例如:脚手架、控制器、邮件程序、观察者……)
  • 轨道环境
  • 生成器上的 rails 字段类型(例如:脚手架、模型、迁移……)
  • 常见的 --long-options...
于 2011-03-02T12:01:05.653 回答
4

不错的https://github.com/jweslley/rails_completion也用 Brew 包装。

执行: brew install rails-completion 在您的 Mac 上在几秒钟内安装它!

并且不要忘记添加.rails_generators~.gitignore.

于 2012-11-05T21:57:11.377 回答