Skip to content

Instantly share code, notes, and snippets.

@RichardBronosky
Created March 31, 2010 20:41
Show Gist options
  • Select an option

  • Save RichardBronosky/350859 to your computer and use it in GitHub Desktop.

Select an option

Save RichardBronosky/350859 to your computer and use it in GitHub Desktop.
# put your current git branch into your bash prompt string.
export PS1='$(git branch 2>/dev/null | awk "/\*/{print \"[\"\$2\"]\"}")\w\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment