Skip to content

Instantly share code, notes, and snippets.

@mss
Created June 13, 2009 14:51
Show Gist options
  • Save mss/129278 to your computer and use it in GitHub Desktop.
Save mss/129278 to your computer and use it in GitHub Desktop.
Append this to your .bashrc to have the current Git branch prepended to your Bash prompt
if [ "$(type -t __git_ps1)" ]; then
PS1="\$(__git_ps1 '(%s)')$PS1"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment