Skip to content

Instantly share code, notes, and snippets.

@mediaupstream
Created June 1, 2018 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mediaupstream/39a5f71d1923589aec4b82574d7de0f1 to your computer and use it in GitHub Desktop.
Save mediaupstream/39a5f71d1923589aec4b82574d7de0f1 to your computer and use it in GitHub Desktop.
bears
function parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\n\[\033[38;5;247m\]\w\[\033[34m\]\$(parse_git_branch)\n🐻 \[\033[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment