Created
December 3, 2014 18:33
-
-
Save meonkeys/4c9a3d0bc6be44c83484 to your computer and use it in GitHub Desktop.
bashrc git enhancements, emotiprompt
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
GIT_PS1_SHOWDIRTYSTATE=y | |
GIT_PS1_SHOWSTASHSTATE=y | |
GIT_PS1_SHOWUNTRACKEDFILES=y | |
GIT_PS1_SHOWUPSTREAM=auto | |
# ~ the Emotiprompt(TM) ~ | |
# idea came from: http://linuxgazette.net/122/lg_tips.html#tips.1 | |
smiley() { | |
err=$? | |
if [[ $err == 0 ]] | |
then echo ':)' | |
else echo ":( $err" | |
fi | |
} | |
PS1='$(smiley) [\u@\h \W$(__git_ps1 " <%s>")]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also...