-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
55 lines (46 loc) · 1.39 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
# Unix
alias ll="ls -al"
alias ln="ln -v"
alias mkdir="mkdir -p"
alias e="$EDITOR"
alias v="$VISUAL"
# Bundler
alias b="bundle"
# Rails
alias migrate="bin/rails db:migrate db:rollback && bin/rails db:migrate db:test:prepare"
alias s="rspec"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# Easier navigation: ..., ...., ....., and -
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
alias mux='tmuxinator'
alias muxs='tmuxinator start'
alias notes='nvim -c "set nonumber" -c "set wrap" ~/Dropbox/TODO.txt'
# Ruby
alias befs='bundle exec foreman start'
alias fs='foreman start'
alias be='bundle exec'
alias bes='bundle exec spring'
alias int='bundle exec rake integrate'
alias sp='RAILS_ENV=test bundle exec rake parallel:spec["spec\/(?!features)"]' # sp: spec parallel
alias spp='bundle exec rake parallel:prepare' # spp: spec parallel prepare
# Git
alias ga='git add'
alias gst='git status'
alias gd='git diff'
alias gup='git pull --rebase'
alias gp='git push'
alias gd='git diff'
alias gc='git commit -v'
alias gc!='git commit -v --amend'
alias gca='git commit -v -a'
alias gca!='git commit -v -a --amend'
alias gcmsg='git commit -m'
alias gco='git checkout'
alias glo='git log --oneline --decorate --color'
alias glog='git log --oneline --decorate --color --graph'
alias hbk='heroku pg:backups capture -a'
alias hbku='heroku pg:backups public-url'