-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
44 lines (38 loc) · 926 Bytes
/
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
# unix
alias mkdir='mkdir -p'
alias ls="ls -Gp"
alias now='date -u "+%Y%m%d%H%M%S"'
alias gpg="gpg2"
# git
alias g="git"
alias gwork="git config --local user.email $WORK_EMAIL"
alias gpers="git config --local user.email $PERSONAL_EMAIL"
alias ga="git add"
alias gb="git branch"
alias gd="git diff"
alias gl="git log"
alias gm="git merge"
alias gp="git push"
alias gr="git rebase"
# bundler
alias b="bundle"
alias bi="bundle install"
alias be="bundle exec"
alias bu="bundle update"
# rubygems
alias gi="gem install"
alias giv="gem install -v"
# rails
alias mg="bin/rake db:migrate db:test:prepare"
alias rrg="bin/rails routes -g"
alias dr='diff_routes'
alias rb="RAILS_ENV=test bin/rake db:rollback && bin/rake db:rollback"
# homebrew
alias upbrew='brew update && brew upgrade && brew cleanup'
# tmux
alias tn="tmux new-session -s"
alias ta="tmux attach-session -t"
#
# other shortcuts
alias v="vagrant"
alias h="heroku"