Skip to content

Instantly share code, notes, and snippets.

@joaofraga
Forked from justintv/.bashrc
Last active August 29, 2015 14:02
Show Gist options
  • Save joaofraga/7661cff07881eb508fd6 to your computer and use it in GitHub Desktop.
Save joaofraga/7661cff07881eb508fd6 to your computer and use it in GitHub Desktop.
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ "
# gives me:
# jgfraga@ ~/development/ruby/project (master) # user in green, curr dir in yellow, and branch in green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment