Skip to content

Instantly share code, notes, and snippets.

View mikebob's full-sized avatar

Mike Bobiney mikebob

View GitHub Profile
@mikebob
mikebob / .bashrc
Created April 18, 2011 15:44 — forked from justintv/.bashrc
export PS1="\u@\W[\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)]: "
# For those of us who occasionally forget to change their branches
# This will change your prompt to display not only your working directory but also your current git branch, if you have one.
# Example
# user@directory[branch]: