rails3.plugin.zsh 571 B

123456789101112131415161718192021
  1. # Rails 3 aliases, backwards-compatible with Rails 2.
  2. function _rails_command () {
  3. if [ -e "script/server" ]; then
  4. ruby script/$@
  5. else
  6. ruby script/rails $@
  7. fi
  8. }
  9. alias rc='_rails_command console'
  10. alias rd='_rails_command destroy'
  11. alias rdb='_rails_command dbconsole'
  12. alias rdbm='rake db:migrate db:test:clone'
  13. alias rg='_rails_command generate'
  14. alias rp='_rails_command plugin'
  15. alias rs='_rails_command server'
  16. alias rsd='_rails_command server --debugger'
  17. alias devlog='tail -f log/development.log'
  18. alias rdm='rake db:migrate'
  19. alias rdr='rake db:rollback'