Created
April 22, 2011 20:55
-
-
Save anjuls/937619 to your computer and use it in GitHub Desktop.
bash coloring
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
# .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