diff --git a/.oh-my-zsh/custom/dira.zsh b/.oh-my-zsh/custom/dira.zsh index d7db5ae..9d3b6ac 100644 --- a/.oh-my-zsh/custom/dira.zsh +++ b/.oh-my-zsh/custom/dira.zsh @@ -10,6 +10,7 @@ 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"/ } @@ -17,17 +18,18 @@ 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)"'