Skip to content

Instantly share code, notes, and snippets.

@offby1
Created August 15, 2010 14:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save offby1/525564 to your computer and use it in GitHub Desktop.
if [ -r /etc/bash_completion ]; then
shopt -s extglob
. /etc/bash_completion
fi
if [ -n "$(type -t __git_ps1)" ]
then
PS1=${PS1}'$(__git_ps1 " (%s)")'
fi
PS1="$PS1\\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment