Skip to content

Instantly share code, notes, and snippets.

@pkhamre
Created April 23, 2013 11:11
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 pkhamre/5442732 to your computer and use it in GitHub Desktop.
Save pkhamre/5442732 to your computer and use it in GitHub Desktop.
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