-
Notifications
You must be signed in to change notification settings - Fork 2
/
alias
54 lines (46 loc) · 1.24 KB
/
alias
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
alias l='ls'
alias ll='ls -al'
alias vm='mv'
alias emacs='emacsclient --no-wait'
alias gp='git push origin `__git_ps1 "%s"`'
alias gpl='git pull --rebase'
alias gc='git checkout'
__git_complete gc git_checkout
alias gcp='git cherry-pick'
alias gb='git branch -v'
alias gd='git diff'
alias gsa='git stash apply'
alias gst='git status'
alias gfp='git format-patch'
alias gbb='git bisect bad'
alias gbg='git bisect good'
alias gl='git --no-pager log --pretty=format:"%h %ad | %s [%an]" --graph --date=short --max-count=15'
alias gr='git reset HEAD --hard'
__git_complete gr git_reset
alias cd1='cd ..'
alias cd2='cd ../..'
alias cd3='cd ../../..'
alias cd4='cd ../../../..'
alias cd5='cd ../../../../..'
alias mig='bundle exec rails db:migrate'
alias sc='bundle exec rails c'
alias sg='bundle exec rails generate'
alias ss='bundle exec rails s'
alias b='bundle'
alias cb='cargo build'
alias cr='cargo run'
alias json='python -mjson.tool'
alias rs='bundle exec rake spec'
# platform specific
platform=$(uname)
case $platform in
"Linux")
alias xclip='xclip -selection clipboard'
alias vim='emacsclient --no-wait'
alias ls='ls --color'
;;
"Darwin")
alias vi='emacsclient --no-wait'
alias ls='ls -G'
;;
esac