rails.plugin.zsh 713 B

123456789101112131415161718192021
  1. alias ss='thin --stats "/thin/stats" start'
  2. alias sg='ruby script/generate'
  3. alias sd='ruby script/destroy'
  4. alias sp='ruby script/plugin'
  5. alias sr='ruby script/runner'
  6. alias ssp='ruby script/spec'
  7. alias rdbm='rake db:migrate'
  8. alias rdbtp='rake db:test:prepare'
  9. alias migrate='rake db:migrate && rake db:test:prepare'
  10. alias sc='ruby script/console'
  11. alias sd='ruby script/server --debugger'
  12. alias devlog='tail -f log/development.log'
  13. alias testlog='tail -f log/test.log'
  14. alias prodlog='tail -f log/production.log'
  15. alias -g RET='RAILS_ENV=test'
  16. alias -g REP='RAILS_ENV=production'
  17. alias -g RED='RAILS_ENV=development'
  18. function remote_console() {
  19. /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
  20. }