Skip to content

Instantly share code, notes, and snippets.

@gioper86
Created October 27, 2019 09:09
Show Gist options
  • Save gioper86/7744de8192b9f4d6c068f56486b22bd4 to your computer and use it in GitHub Desktop.
Save gioper86/7744de8192b9f4d6c068f56486b22bd4 to your computer and use it in GitHub Desktop.
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="🐠 \[\e[95m\]\u\[\e[m\]:\[\e[92m\]\w\[\e[m\]\\$ \$(parse_git_branch)\n>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment