Skip to content

Instantly share code, notes, and snippets.

@robertsosinski
Created August 13, 2013 18:44
Show Gist options
  • Save robertsosinski/6224315 to your computer and use it in GitHub Desktop.
Save robertsosinski/6224315 to your computer and use it in GitHub Desktop.
PS1 Prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="[\t] \u@\h:\W\$(parse_git_branch)$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment