rails.plugin.zsh 633 B

12345678910111213141516171819
  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 -g RET='RAILS_ENV=test'
  14. alias -g REP='RAILS_ENV=production'
  15. alias -g RED='RAILS_ENV=development'
  16. function remote_console() {
  17. /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
  18. }