Created
March 18, 2010 13:08
-
-
Save mathie/336325 to your computer and use it in GitHub Desktop.
This file contains 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
function smiley() { | |
if [ $? = 0 ]; then | |
printf $1 | |
else | |
printf $2 | |
fi | |
return $? | |
} | |
# Show lots of info in the __git_ps1 output. | |
export GIT_PS1_SHOWDIRTYSTATE="true" | |
export GIT_PS1_SHOWSTASHSTATE="true" | |
export GIT_PS1_SHOWUNTRACKEDFILES="true" | |
export PS1='$(smiley "\[\033[01;32m\]:)\[\033[00m\]" "\[\033[01;31m\]:(\[\033[00m\]") \[\033[01;34m\]\W\[\033[00m\] \[\033[01;36m\]$(rvm-prompt)\[\033[00m\]$(__git_ps1 " \[\033[01;35m\](%s)\[\033[00m\]") \$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment