forked from ryanb/dotfiles
/
aliases
151 lines (144 loc) · 6.1 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Handle the fact that this file will be used with multiple OSs
platform=`uname`
if [[ $platform == 'Linux' ]]; then
alias a='ls -lrth --color'
elif [[ $platform == 'Darwin' ]]; then
alias a='ls -lrthG'
fi
alias ack='ag'
alias amend="git commit --amend"
alias asu="cd ~/code/rails/activesupport"
alias aliases='vim ~/.dotfiles/zsh/aliases'
alias b='bin/rspec'
alias bake='bundle exec rake'
alias be='bundle exec'
alias ben='ssh ben@benorenstein.com'
alias bi='bundle install -j 8'
alias bdp='bin/deploy production'
alias bds='bin/deploy staging'
alias be='bundle exec'
alias blog='vim ~/Dropbox/blog/'
alias bo='cd ~/code/boardwalk'
alias br='bin/rspec'
alias bu='bundle update'
alias bunbang='bundle install && !!'
alias c='cd'
alias cc='cd ~/Dropbox/freelancing/code-climate'
alias chad='vim ~/Dropbox/work/thoughtbot/notes/1-1s/chad.txt'
alias code='cd ~/code'
alias codereview='vim ~/Dropbox/notes/code-review-checklist.txt'
alias chris='vim ~/Dropbox/work/thoughtbot/notes/1-1s/chris.txt'
alias d='cd ~/.dotfiles'
alias dbprep='rdm && rdtp'
alias di='cd ~/code/discourse'
alias dr='cd ~/Dropbox'
alias drop='cd ~/Dropbox'
alias edwin='vim ~/Dropbox/work/thoughtbot/notes/1-1s/edwin.txt'
alias fs='foreman start'
alias -g G='| grep'
alias gad='git add --all .'
alias gag='git add . && git commit --amend --no-edit && git push -f'
alias gbc='gdc'
alias gca='git commit -a'
alias gcaa='git commit -a --amend -C HEAD'
alias gcl='git clone'
alias gcm="git commit -m"
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gdm='git diff master'
alias get='sudo apt-get install'
alias gg='git lg'
alias gig='vim ~/Dropbox/notes/gigmasters-prefill.txt'
alias gpush='echo "Use gp!" && git push'
alias gp='git push'
alias gpf='git push -f'
alias gpr='git pull --rebase'
alias gratitude='vim ~/Dropbox/docs/journal/gratitude.txt'
alias grc='git rebase --continue'
alias grake='rspec --drb spec/ && cucumber --drb features/'
alias gurad='guard'
alias h='sync'
alias he='cd ~/code/hacker-engine'
alias herkou='heroku'
alias hpr='hub pull-request'
alias hpush='git push heroku'
alias i='ssh -t ben@downtowncrossingquartet.com screen -rd irc'
alias irb='irb --readline -r irb/completion'
alias izea='vim ~/Dropbox/work/thoughtbot/notes/izea.md'
alias js='jekyll serve'
alias jokes='vim ~/Dropbox/notes/jokes.txt'
alias journal='vim ~/Dropbox/docs/journal/2011.txt'
alias killruby='killall -9 ruby'
alias killrudy='killall -9 ruby'
alias -g M='| more'
alias mastre='master'
alias mentor='vim ~/Dropbox/work/thoughtbot/notes/mentees.txt'
alias newscreen="tmux"
alias notes="cd ~/Dropbox/notes ; vim ."
alias l='cd ~/code/upcase'
alias lt='lein test'
alias lrs='lein ring server'
alias -g L='| less'
alias pc='production-console'
alias parallel='rdtp && rake parallel:prepare test:parallel_with_specs'
alias patch='git format-patch HEAD^ --stdout > patch.diff'
alias phil='vim ~/Dropbox/work/thoughtbot/notes/1-1s/phil.txt'
alias phonecall='vim ~/Dropbox/work/thoughtbot/notes/prime/phonecalls.txt'
alias podcast='vim ~/Dropbox/work/thoughtbot/notes/podcast.txt'
alias prepdb='dbprep'
alias r='cd ~/code/refactoring-good-to-great'
alias remore='!! | more'
alias reguard='killall -9 ruby ; guard'
alias rerake='!! && rake'
alias restart_apache="sudo /etc/init.d/apache2 restart"
alias restart_postgres="stoppostgres && startpostgres"
alias retag='ctags -R --exclude=.svn --exclude=.git --exclude=log --exclude=tmp *'
alias retagwithcoffee='ctags -R --exclude=.svn --exclude=.git --exclude=log --exclude=tmp * && coffeetags -R -f >> tags'
alias repush="gpr && git push"
alias review="git diff master"
alias rc='bin/rails console'
alias remigrate='rake db:migrate && rake db:migrate:redo && rake db:schema:dump && rake db:test:prepare'
alias rdm="bin/rake db:migrate"
alias rdtp="bin/rake db:test:prepare"
alias rs='bundle install && rails server -p 3000'
alias safepush='git pull --rebase && bundle install && rdm && rake && git push'
alias sfh='cd ~/code/speaking-for-hackers-book'
alias shpush='rake && hpush'
alias sc='staging-console'
alias so='source ~/.dotfiles/zsh/aliases'
alias sp='safepush'
alias speaking='cd ~/Dropbox/speaking'
alias squash='git rebase -i master'
alias ss='spring stop'
alias stage='git push staging head:master && staging open'
alias startpostgres='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias startredis='redis-server /usr/local/etc/redis.conf &'
alias stoppostgres='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop'
alias status='vim ~/Dropbox/work/thoughtbot/notes/upcase -c "Ex"'
alias sync='git add -u . && git commit -m "Minor changes. Commit message skipped." && repush'
alias tail-logs='heroku logs -t'
alias thom='vim ~/Dropbox/work/thoughtbot/notes/1-1s/thom.txt'
alias track='git checkout -t'
alias training-log='vim ~/Dropbox/notes/training-log.md'
alias t='cd ~/code/trailmix'
alias tute='vim ~/Dropbox/work/thoughtbot/notes/1-1s/tute.txt'
alias w='cd ~/code/upcase-exercises'
alias worknotes='vim ~/Dropbox/work/thoughtbot/notes/upcase -c "Ex"'
alias u='cd ..'
alias undeployed='git fetch --multiple production origin && git log production/master..origin/master'
alias v='vim'
alias vi='vim'
# Heroku staging
alias staging-console='heroku run console --remote staging'
alias staging-tail='heroku logs --tail --remote staging'
# Heroku production
alias production-console='heroku run console --remote production'
alias production-tail='heroku logs --tail --remote production'
# # Heroku databases
alias db-pull-staging='development restore staging'
alias db-pull-production='production backup && development restore production'
alias db-copy-production-to-staging='heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging --confirm `basename $PWD`-staging'
alias db-backups='heroku pgbackups --remote production'
alias levelup-get-production='curl -o ~/Downloads/latest.dump `heroku pgbackups:url --app levelup-production`'
alias levelup-db-fix='killruby ; rake db:drop:all db:create:all ; pg_restore --verbose --clean --no-acl --no-owner -d levelup_development ~/Downloads/latest.dump -j 8 ; prepdb && rake levelup:dev:create_admin && rails runner CreditCard.delete_all'