forked from mdo/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshaliases
60 lines (49 loc) · 1.17 KB
/
.zshaliases
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
# Aliases
alias edit=atom
## Shortcuts
alias ll='ls -al'
alias s=ssh
alias editgit='edit ~/.gitconfig'
alias editbash='edit ~/.zshrc'
alias resource='source ~/.zshrc && echo "Done!"'
## Git commands
alias wow="git status"
alias gti="git"
alias log='git log'
alias lg='git lg'
alias diff='git diff'
alias diffs='git diff --staged'
alias branch='git branch'
alias rebase='git rebase'
alias squash='git rebase -i --autosquash'
alias fetch='git fetch'
alias merge='git merge'
alias stash='git stash'
alias st='git status'
alias df='git diff'
alias co='git checkout'
alias add='git add'
alias addp='git add -p'
alias ci='git commit'
alias fixup='git commit --fixup'
alias br='git branch'
alias reshead='git reset HEAD'
alias push='git push'
alias pull='git pull'
alias fp='fetch && pull'
alias gmm='git merge master'
alias recent='git for-each-ref --sort=-committerdate refs/heads/'
### branch switching
alias cmp='git co master && git pull'
alias cm='git co master'
## npm
alias nrun='npm run'
## Docker
alias d=docker
alias dc='docker-compose'
## Bower
alias bi="bower install"
alias bis="bower install -S"
## Symfony
alias sf="php app/console"
alias chhvm="hhvm /usr/local/bin/composer"