alias g="git"
alias gs="git status"
alias gd="git diff"
alias gdc="git diff --cached"
alias gc="git commit -v"
alias gsu="git submodule update"
alias undo="git reset --soft HEAD^"
alias list='git show $(git stash list | cut -d":" -f 1)'
alias weight="du -d 1 -c -h"
alias sizes="du -sh *"
alias flush="dscacheutil -flushcache"
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /'
}
export PS1="\A [\w] \$(parse_git_branch)$ "
loading…