Created
May 2, 2011 22:08
-
-
Save justinrainbow/952472 to your computer and use it in GitHub Desktop.
my ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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