Skip to content

Instantly share code, notes, and snippets.

@justinrainbow
Created May 2, 2011 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinrainbow/952472 to your computer and use it in GitHub Desktop.
Save justinrainbow/952472 to your computer and use it in GitHub Desktop.
my ps1
# test for the git ps1 script
declare -f __git_ps1 >/dev/null
if (( $? ))
then
PS1='[\[\033[34m\w\033[0m]\n[\t \u]\$ '
else
PS1='[\[\033[34m\w\033[0m$(__git_ps1 " (\033[0;32m%s\033[0m)")]\n[\t \u]\$ '
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment