forked from linko/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbash_aliases
More file actions
73 lines (64 loc) · 1.71 KB
/
bash_aliases
File metadata and controls
73 lines (64 loc) · 1.71 KB
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
# 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'
# Rails
alias rg='rails generate'
alias rc='rails console'
alias plog='touch log/production.log && tail -f log/production.log'
alias dlog='touch log/development.log && tail -f log/development.log'
alias tlog='touch log/test.log && tail -f log/test.log'
alias rs="rails s"
alias rsp="rails s puma"
alias fr="foreman start"
# Rails
alias migrate="bundle exec rake db:migrate db:test:prepare"
alias remigrate="bundle exec rake db:migrate db:migrate:redo db:schema:dump db:test:prepare"
alias remongrate="bundle exec rake mongoid:migrate mongoid:migrate:redo"
alias rs="rails s"
alias rsp="rails s puma"
alias fr="foreman start"
# Bundler
alias b="bundle"
alias be="bundle exec"
alias bake="bundle exec rake"
# Tests and Specs
alias s="bundle exec rspec"
alias cuc="bundle exec cucumber"
# git
alias g="git"
alias gs='git status'
alias gci="git pull --rebase && rake && git push"
alias ga='git add'
alias gau='git add -u'
alias gai='git add --interactive'
alias gap='git add --patch'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gbr='git branch'
alias gcb='git checkout -b'
alias gca='git commit -a -v'
alias gci='git commit -v'
alias gcam='git commit -am'
alias gcm='git commit -m'
alias gco='git checkout'
alias gdf='git diff'
alias gfh='git fetch'
alias glg='git log'
alias gmg='git merge'
alias gpl='git pull'
alias gpr='git pull --rebase'
alias gph='git push'
alias grb='git rebase'
alias grm='git rm'
alias gsa='git stash apply'
alias gsd='git stash drop'
alias gsh='git stash'
alias gsl='git stash list'
alias gsp='git stash pop'
alias gst='git status'
alias gsu='git submodule update --init'