Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created July 3, 2013 14:48
Show Gist options
  • Save BDQ/5918730 to your computer and use it in GitHub Desktop.
Save BDQ/5918730 to your computer and use it in GitHub Desktop.
alias v="vim"
alias rs="bundle exec rails server"
alias rsd="bundle exec rails server --debugger"
alias rsp="bundle exec rails server -e production"
alias rc="bundle exec rails console"
alias rd="bundle exec rails db"
alias r="bundle exec rake"
alias b="bundle"
alias be="bundle exec"
alias bs="bundle show"
alias bi="bundle check || bundle install"
alias bu="bundle update"
alias gd="git diff | vim -"
alias gs="git status -sb"
alias gsh="git show | vim -"
alias gc="git commit -am"
alias gco="git checkout"
alias gph="git push"
alias gpho="git push origin"
alias gphom="git push origin master"
alias gpl="git pull"
alias gplo="git pull origin"
alias gplom="git pull origin master"
alias gck="git checkout"
alias gundo="git reset --soft HEAD^"
alias gredo="git commit -c ORIG_HEAD"
alias gcp="git cherry-pick"
alias rg="rvm gemset"
alias rgu="rvm gemset use"
alias fs="bundle exec foreman start"
alias fsdb="bundle exec foreman start -f=DBProcfile"
alias rac="bundle exec rake assets:clean"
alias rap="bundle exec rake assets:precompile"
alias rapn="bundle exec rake assets:precompile:nondigest"
alias rmigs="bundle exec rake railties:install:migrations"
alias sand="r sandbox && cd sandbox && rs"
alias res="touch tmp/restart.txt"
alias td="tail -f log/development.log"
alias tl="tail -f log/*.log"
alias va="vagrant"
alias vas="vagrant ssh"
alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
alias pair="ssh [email protected] -p 6333"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment