2011-12-04 15:09:54 -05:00
|
|
|
# Unix
|
2011-01-13 17:32:51 -05:00
|
|
|
alias tlf="tail -f"
|
2011-01-14 01:17:25 -05:00
|
|
|
alias ln='ln -v'
|
|
|
|
alias mkdir='mkdir -p'
|
|
|
|
alias ...='../..'
|
2011-04-04 10:25:39 -04:00
|
|
|
alias l='ls'
|
|
|
|
alias ll='ls -al'
|
|
|
|
alias lh='ls -Alh'
|
2011-01-14 01:17:25 -05:00
|
|
|
alias -g G='| grep'
|
|
|
|
alias -g M='| less'
|
|
|
|
alias -g L='| wc -l'
|
|
|
|
alias -g ONE="| awk '{ print \$1}'"
|
2011-12-04 15:09:54 -05:00
|
|
|
|
|
|
|
# git
|
|
|
|
alias g="git"
|
|
|
|
alias gci="git pull --rebase && rake && git push"
|
|
|
|
|
|
|
|
# Ruby
|
|
|
|
alias help-strftime='ruby ~/bin/help-strftime.rb'
|
|
|
|
|
|
|
|
# Bundler
|
|
|
|
alias b="bundle"
|
|
|
|
alias be="bundle exec"
|
|
|
|
alias bake="bundle exec rake"
|
|
|
|
alias s="bundle exec rspec"
|
|
|
|
alias cuc="bundle exec cucumber"
|
|
|
|
|
|
|
|
# Rubygems
|
|
|
|
alias gi="gem install"
|
|
|
|
alias giv="gem install -v"
|
|
|
|
|
|
|
|
# Rails
|
2011-12-21 10:55:41 -05:00
|
|
|
alias migrate="bundle exec rake db:migrate db:test:prepare"
|
|
|
|
alias remigrate="bundle exec rake db:migrate db:migrate:redo db:schema:dump db:test:prepare"
|
|
|
|
alias remongrate="bundle exec rake mongoid:migrate mongoid:migrate:redo"
|
2011-12-04 15:09:54 -05:00
|
|
|
|
|
|
|
# Heroku staging
|
|
|
|
alias staging='heroku run console --remote staging'
|
2011-12-04 18:30:02 -05:00
|
|
|
alias staging-process='watch heroku ps --remote staging'
|
|
|
|
alias staging-releases='heroku releases --remote staging'
|
|
|
|
alias staging-tail='heroku logs --tail --remote staging'
|
2011-12-04 15:09:54 -05:00
|
|
|
|
|
|
|
# Heroku production
|
|
|
|
alias production='heroku run console --remote production'
|
2011-12-04 18:30:02 -05:00
|
|
|
alias production-process='watch heroku ps --remote production'
|
|
|
|
alias production-releases='heroku releases --remote production'
|
|
|
|
alias production-tail='heroku logs --tail --remote production'
|
2011-12-04 15:09:54 -05:00
|
|
|
|
|
|
|
# Heroku databases
|
|
|
|
alias db-pull-staging='heroku db:pull --remote staging --confirm `basename $PWD`-staging'
|
|
|
|
alias db-pull-production='heroku db:pull --remote production --confirm `basename $PWD`-production'
|
|
|
|
alias db-copy-production-to-staging='heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging --confirm `basename $PWD`-staging'
|
|
|
|
alias db-backup-production='heroku pgbackups:capture --remote production'
|