Skip to content

Instantly share code, notes, and snippets.

@DCzajkowski
Last active January 6, 2017 22:59
Show Gist options
  • Save DCzajkowski/ac6f7f26d7eb7888aa1108b1228aea84 to your computer and use it in GitHub Desktop.
Save DCzajkowski/ac6f7f26d7eb7888aa1108b1228aea84 to your computer and use it in GitHub Desktop.
# In your ~/.bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\033[1;33m⚡ ︎\033[0;32m\W\[\033[0;33m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment