Skip to content

Instantly share code, notes, and snippets.

@Fosome
Created September 15, 2012 20:17
Show Gist options
  • Save Fosome/3729572 to your computer and use it in GitHub Desktop.
Save Fosome/3729572 to your computer and use it in GitHub Desktop.
ryan's bash prompt
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\w\n\u@\h\e[0;36m\$(parse_git_branch)\e[m ‡ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment