Skip to content

Instantly share code, notes, and snippets.

@trieut
Created September 30, 2014 20:20
Show Gist options
  • Save trieut/e4a04eb6e95a0b067c46 to your computer and use it in GitHub Desktop.
Save trieut/e4a04eb6e95a0b067c46 to your computer and use it in GitHub Desktop.
A nice bash prompt from the Babun (babun.github.io) project. Works well w/ bash on OS X and Linux too.
PS1="\[\033[00;34m\]{ \[\033[01;34m\]\W \[\033[00;34m\]}\[\033[01;32m\] \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" ) \[\033[01;31m\]» \[\033[00m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment