Skip to content

Instantly share code, notes, and snippets.

View cocoanton's full-sized avatar

Anton Kindblad cocoanton

View GitHub Profile
export PATH="/usr/local/opt/ruby/bin:$PATH"
export PATH=/usr/local/bin:$PATH
export PATH="$HOME/bin:$PATH"
export PATH=/usr/local/sbin:$PATH
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/:([\1$(parse_git_status)])/"
}
parse_git_status () {
status=$(git status --porcelain 2> /dev/null)