Skip to content

Instantly share code, notes, and snippets.

@jefftougas
Last active August 29, 2015 13:56
Show Gist options
  • Save jefftougas/9124268 to your computer and use it in GitHub Desktop.
Save jefftougas/9124268 to your computer and use it in GitHub Desktop.
my ps1
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
export PS1="\n\[\e[1;35m\]\\u\[\e[0m\]:\w \[\e[1;32m\]\$(parse_git_branch)\[\e[0m\] \n→ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment