-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alias
41 lines (35 loc) · 895 Bytes
/
.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
if command -v gh >/dev/null; then
eval "$(gh alias -s)"
fi
# Create shell aliases for most-used Git commands.
alias st='git st'
alias ct='git ct'
alias lg='git log'
alias co='git co'
alias br='git br'
alias dc='git diff --cached'
alias add='git add --all'
alias log='git log'
alias push='git push'
alias pull='git pull'
alias stash='git stash'
alias clone='git clone'
alias fetch='git fetch'
alias merge='git merge -s recursive -X patience'
alias branch='git branch'
alias rebase='git rebase'
alias amend='git commit -C HEAD --amend'
alias remotes='git remotes'
# tmux aliases.
alias tmux="TERM=screen-256color-bce tmux"
# Vim aliases.
alias vi="vim"
alias zshrc="vim ~/.zshrc"
alias vimrc="vim ~/.vimrc"
alias nvi="nvim"
# Pass aliases to root account.
alias sudo='sudo '
# Allow use of aliased commands with watch.
#
# @see: https://unix.stackexchange.com/a/25329
alias watch='watch '