Skip to content

Instantly share code, notes, and snippets.

@jameskbride
Created April 13, 2013 14:12
Show Gist options
  • Save jameskbride/5378555 to your computer and use it in GitHub Desktop.
Save jameskbride/5378555 to your computer and use it in GitHub Desktop.
Bash PS1 prompt with git branch info and color.
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[33m\]$(__git_ps1 "(%s)")\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment