Skip to content

Instantly share code, notes, and snippets.

@anjuls
Created April 22, 2011 20:55
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 anjuls/937619 to your computer and use it in GitHub Desktop.
Save anjuls/937619 to your computer and use it in GitHub Desktop.
bash coloring
# .bashrc
###########
export PS1="\e[0;32m\u@\h \w> \e[m"
# Define a few Color's
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m' # No Color
echo -e "${LIGHTBLUE} Hello ${RED} ${USER}, ${CYAN}Welcome back to ${HOSTNAME}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment