-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash-aliases
26 lines (26 loc) · 947 Bytes
/
bash-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
alias g='git'
__git_complete g __git_main
alias ll='ls -l'
alias lla='ls -la'
alias less='less -R' # Colored less output
alias gs='git status'
alias gc='git commit'
alias gca='git commit-all'
alias gamend='git amend-all'
alias gk='gitk --all &'
alias gd='git diff --color'
alias gdi='git diff --color --cached'
if [[ $OSTYPE == darwin* ]]; then
alias ls='gls --color=auto --group-directories-first'
else
alias ls='ls --color=auto --group-directories-first'
fi
alias gl='git log --oneline --graph --decorate --color'
alias glp='git log --oneline --graph --all --decorate --color'
alias glg="git log --graph --all --pretty=format:'%Cred%h%Creset - %Cgreen(%cr)%Creset %s%C(yellow)%d%Creset' --abbrev-commit --date=relative"
alias gap='git add --patch .'
alias gat='git add $(git ls-files -o --exclude-standard)'
alias gsa='git stash -u'
alias ss='svn status'
alias sd='svn diff | colordiff | less'
alias git-root='cd $(git rev-parse --show-cdup)'