Skip to content

Commit

Permalink
Update Rails shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
dira committed Nov 10, 2014
1 parent 9b698b1 commit 40147d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .oh-my-zsh/custom/dira.zsh
Expand Up @@ -10,24 +10,26 @@ alias gsh='git stash'
alias gshp='git stash pop'
alias gco='git checkout'
alias gb='git branch'
alias gp='bundle exec rspec && git push'


t() { ruby -Itest "$1" -n /"$2"/ }
alias rtu='rake test:units'
alias rtf='rake test:functionals'
alias rti='rake test:integration'

alias ra='./script/rails'
alias rc='ra c'
alias rgm='ra g migration'
alias rc='rails c'
alias rgm='rails g migration'

alias rdm='rake db:migrate'
alias rdmt='rake db:migrate RAILS_ENV=test'
alias rdr='rake db:rollback'
alias rdrt='rake db:rollback RAILS_ENV=test'
alias rdm='bundle exec rake db:migrate'
alias rdmt='bundle exec rake db:migrate RAILS_ENV=test'
alias rdr='bundle exec rake db:rollback'
alias rdrt='bundle exec rake db:rollback RAILS_ENV=test'

alias b='bundle'
alias bi='bundle install'
alias gu='bundle exec guard -l 0.5'
alias gu='bundle exec guard -i -l 0.5'

alias redis='/usr/local/bin/redis-server >/dev/null &'

alias tl='tail -f log/development.log | grep -vE "(^\s*$|asset)"'

0 comments on commit 40147d7

Please sign in to comment.