rails3.plugin.zsh 604 B

12345678910111213141516171819202122
  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 ru='_rails_command runner'
  16. alias rs='_rails_command server'
  17. alias rsd='_rails_command server --debugger'
  18. alias devlog='tail -f log/development.log'
  19. alias rdm='rake db:migrate'
  20. alias rdr='rake db:rollback'