* Remove `help-strftime` (rarely call it). * Remove `be` and `bundle exec` (using `bundle --binstubs` now). * Add `t` command for running isolated `Test::Unit` tests. * Remove MongoDB migrate (rarely use Mongo). * Rename `staging` to `staging-console` to better reveal intent. * Remove `db-pull-*` commands (`pg_restore` is new best practice).
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
# Unix
|
|
alias tlf="tail -f"
|
|
alias ln='ln -v'
|
|
alias mkdir='mkdir -p'
|
|
alias ...='../..'
|
|
alias l='ls'
|
|
alias ll='ls -al'
|
|
alias lh='ls -Alh'
|
|
alias -g G='| grep'
|
|
alias -g M='| less'
|
|
alias -g L='| wc -l'
|
|
alias -g ONE="| awk '{ print \$1}'"
|
|
|
|
# git
|
|
alias g="git"
|
|
alias gci="git pull --rebase && rake && git push"
|
|
|
|
# Bundler
|
|
alias b="bundle"
|
|
|
|
# Tests and Specs
|
|
alias t="ruby -I test"
|
|
alias s="bundle exec rspec"
|
|
alias cuc="bundle exec cucumber"
|
|
|
|
# Rubygems
|
|
alias gi="gem install"
|
|
alias giv="gem install -v"
|
|
|
|
# Rails
|
|
alias migrate="rake db:migrate && rake db:rollback && rake db:migrate && rake db:test:prepare"
|
|
|
|
# Heroku staging
|
|
alias staging-console='heroku run console --remote staging'
|
|
alias staging-process='watch heroku ps --remote staging'
|
|
alias staging-releases='heroku releases --remote staging'
|
|
alias staging-tail='heroku logs --tail --remote staging'
|
|
|
|
# Heroku production
|
|
alias production-console='heroku run console --remote production'
|
|
alias production-process='watch heroku ps --remote production'
|
|
alias production-releases='heroku releases --remote production'
|
|
alias production-tail='heroku logs --tail --remote production'
|
|
|
|
# Heroku databases
|
|
alias db-backup-production='heroku pgbackups:capture --remote production'
|
|
alias db-copy-production-to-staging='heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging --confirm `basename $PWD`-staging'
|