forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 89
/
aliases
164 lines (159 loc) · 6.21 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
152
153
154
155
156
157
158
159
160
161
162
163
164
# 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 -g G='| grep'
alias -g L='| less'
alias -g M='| more'
alias adam='vim ~/Dropbox/notes/adam-wathan.md'
alias aliases='vim ~/.dotfiles/zsh/aliases'
alias allhands='vim ~/Dropbox/work/tuple/all-hands.md'
alias amend="git commit --amend"
alias b='bin/rspec'
alias bdp='production deploy'
alias bds='staging deploy'
alias be='bundle exec'
alias bejs='bundle exec jekyll serve'
alias bi='bundle install -j 8'
alias blog='z blog'
alias book='cd ~/Dropbox/sales-for-hackers && vim book.md'
alias br='bin/rspec'
alias bsf='bin/rspec spec/features'
alias bu='bundle update'
alias bunbang='bundle install && !!'
alias business-ideas='vim ~/Dropbox/notes/business-ideas.md'
alias c='cd'
alias cat='bat'
alias christian='vim ~/Dropbox/notes/christian.md'
alias code='cd ~/code'
alias cqc='vim ~/code/cqc-exercises/exercises.md'
alias d='cd ~/.dotfiles'
alias dbprep='rdm && rdtp'
alias derrick='vim ~/Dropbox/notes/derrick.md'
alias drop='cd ~/Dropbox'
alias f='cd ~/code/formkeep'
alias feels='vim ~/Dropbox/notes/feels.md'
alias fix-camera='sudo killall VDCAssistant'
alias fn='vim ~/Dropbox/work/thoughtbot/notes/formkeep/notes.md'
alias fs='bundle install && foreman start'
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 gg='git lg'
alias gom-done="git-on-master && gpf && git-done"
alias gp='git push'
alias gpf='git push --force'
alias gph='git push heroku'
alias gpr='git pull --rebase'
alias gpush='echo "Use gp!" && git push'
alias gratitude='vim ~/Dropbox/docs/journal/gratitude.txt'
alias grc='git rebase --continue'
alias gs='git show'
alias gurad='guard'
alias h='sync'
alias herkou='heroku'
alias hh='vim ~/Dropbox/hfh/notes.md'
alias hpr='hub pull-request'
alias hpush='git push heroku'
alias i='ssh -t [email protected] screen -rd irc'
alias idea='z blog && vim ideas.md'
alias irb='irb --readline -r irb/completion'
alias jokes='vim ~/Dropbox/notes/jokes.txt'
alias jordan='vim ~/Dropbox/notes/jordan-gal.md'
alias journal='vim ~/Dropbox/docs/journal/2011.txt'
alias js='jekyll serve'
alias killruby='pkill -f ruby'
alias killrudy='killruby'
alias l='cd ~/code/upcase'
alias m='git checkout master'
alias macos='vim ~/Dropbox/work/tuple/os-x-power-user-course-macos.md'
alias mastre='master'
alias microconf='vim ~/Dropbox/speaking/mc-19/notes.md'
alias mikey='vim ~/Dropbox/work/tuple/mikey.md'
alias squash='git rebase -i master'
alias newblog='z blog ; rake new'
alias news="vim -c \":e ~/Dropbox/notes/newsletter\""
alias newscreen="tmux"
alias notes="cd ~/Dropbox/notes ; vim ."
alias onboard='vim ~/Dropbox/work/tuple/onboarding.md'
alias pc='production-console'
alias podcast='vim ~/Dropbox/notes/podcast.md'
alias prepdb='dbprep'
alias r='cd ~/code/briefs'
alias rc='bin/rails console'
alias rdm="bin/rake db:migrate"
alias retro='vim ~/Dropbox/notes/retro.md'
alias rdtp="bin/rake db:test:prepare"
alias reattach='tmux attach'
alias reguard='killall -9 ruby ; guard'
alias remigrate='rake db:migrate && rake db:migrate:redo && rake db:schema:dump && rake db:test:prepare'
alias remore='!! | more'
alias repush="gpr && git push"
alias rerake='!! && rake'
alias restart_apache="sudo /etc/init.d/apache2 restart"
alias restart_postgres="stoppostgres && startpostgres"
alias retag='ctags -R --exclude=node_modules --exclude=.svn --exclude=.git --exclude=log --exclude=tmp *'
alias review="vim ~/Dropbox/notes/review.md"
alias rr="vim ~/Dropbox/rr/_notes/notes.md"
alias rs='bundle check && rails server -p 3000'
alias safepush='git pull --rebase && bundle install && rdm && rake && git push'
alias sales='vim ~/Dropbox/work/tuple/sales/index.md'
alias sb='stack build'
alias sc='staging-console'
alias sfh='cd ~/code/speaking-for-hackers-book'
alias shametest='RUBYOPT="-W0" rake test'
alias shpush='rake && hpush'
alias si='stack install'
alias so='source ~/.dotfiles/zsh/aliases'
alias sp='safepush'
alias speaking='cd ~/Dropbox/speaking'
alias spencer='vim ~/Dropbox/work/tuple/spencer.md'
alias squash='git rebase -i master'
alias ss='spring stop'
alias stage='git push staging head:master && staging open'
alias standup='vim ~/Dropbox/work/tuple/standup.md'
alias starla='vim ~/Dropbox/work/tuple/starla.md'
alias start='vim ~/Dropbox/notes/day-start-checklist.md'
alias startpostgres='pg_ctl -D /usr/local/var/postgres start'
alias startredis='redis-server /usr/local/etc/redis.conf &'
alias status='vim ~/Dropbox/work/thoughtbot/notes/upcase -c "Ex"'
alias steve='vim ~/Dropbox/notes/steve-schoger.md'
alias stoppostgres='pg_ctl -D /usr/local/var/postgres9.4 -l /usr/local/var/postgres9.4/server.log stop'
alias sync='git add -u . && git commit -m "Minor changes. Commit message skipped." && repush'
alias t='cd ~/code/macapp && open ~/code/macapp/Tuple.xcworkspace'
alias tail-logs='heroku logs -t'
alias tc='z backend && pc'
alias track='git checkout -t'
alias training-log='vim ~/Dropbox/notes/training-log.md'
alias trs='tmux rename-session'
alias tyler='vim ~/Dropbox/notes/tyler.md'
alias u='cd ..'
alias undeployed='git fetch --multiple production origin && git log production/master..origin/master'
alias unslack='sudo cp ~/.dotfiles/hosts-with-timewasters-blocked.txt /etc/hosts'
alias update-tuple='brew update && brew cask upgrade tuple --no-quarantine && brew cask upgrade tuplestaging --no-quarantine'
alias v='vim'
alias vi='vim'
alias worknotes='vim ~/Dropbox/work/tuple/notes -c "Ex"'
alias ys='yarn serve'
alias yw='yarn watch'
# 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='development restore production'
alias db-copy-production-to-staging='staging restore production'