Skip to content

Instantly share code, notes, and snippets.

View msaracevic's full-sized avatar

Miroslav Saračević msaracevic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am msaracevic on github.
  • I am msaracevic (https://keybase.io/msaracevic) on keybase.
  • I have a public key ASC-EKIzkT-Ps7IuUlbaKk9OKeHNgpIE5lWx6fvRS1f8LAo

To claim this, I am signing this object:

@msaracevic
msaracevic / .bash_profile.sh
Last active April 24, 2018 13:07
MacOS bash profile
# nano ~/.bash_profile
# git functions to show branch and status of repository
function parse_git_dirty {
[[ $(git status --porcelain 2> /dev/null) ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ (\1$(parse_git_dirty)\)/"
}