Created
April 23, 2013 11:11
-
-
Save pkhamre/5442732 to your computer and use it in GitHub Desktop.
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
export RED='\e[0;31m' | |
export GREEN='\e[0;32m' | |
export RET_SMILEY='$(if [[ $RET = 0 ]]; then echo -ne "\[$GREEN\]:)"; else echo -ne "\[$RED\]:("; fi;)' | |
export PS1="\[$(tput sgr0)$(tput setaf 5)\]\u@\h\[$(tput sgr0)\]:\[$(tput sgr0)$(tput setaf 4)\]\w\[$(tput sgr0)$(tput setaf 2)\] $RET_SMILEY \[$(tput sgr0)\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment