Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
103 lines (92 sloc) 3.43 KB
#!/usr/bin/env bash
# Reset
export COLOR_NO_COLOUR='\e[0m'
# Regular Colors
export COLOR_BLACK='\e[0;30m'
export COLOR_GRAY='\e[1;30m'
export COLOR_LIGHT_GRAY='\e[0;37m'
export COLOR_CYAN='\e[0;36m'
export COLOR_LIGHT_CYAN='\e[1;36m'
export COLOR_BLUE='\e[0;34m'
export COLOR_LIGHT_BLUE='\e[1;34m'
export COLOR_RED='\e[0;31m'
export COLOR_LIGHT_RED='\e[1;31m'
export COLOR_GREEN='\e[0;32m'
export COLOR_LIGHT_GREEN='\e[1;32m'
export COLOR_PURPLE='\e[0;35m'
export COLOR_LIGHT_PURPLE='\e[1;35m'
export COLOR_BROWN='\e[0;33m'
export COLOR_YELLOW='\e[1;33m'
export COLOR_WHITE='\e[0;37m'
# Bold
export COLOR_B_BLACK='\e[1;30m' # Black
export COLOR_B_RED='\e[1;31m' # Red
export COLOR_B_GREEN='\e[1;32m' # Green
export COLOR_B_YELLOW='\e[1;33m' # Yellow
export COLOR_B_BLUE='\e[1;34m' # Blue
export COLOR_B_PURPLE='\e[1;35m' # Purple
export COLOR_B_CYAN='\e[1;36m' # Cyan
export COLOR_B_WHITE='\e[1;37m' # White
# Underline
export COLOR_U_BLACK='\e[4;30m' # Black
export COLOR_U_RED='\e[4;31m' # Red
export COLOR_U_GREEN='\e[4;32m' # Green
export COLOR_U_YELLOW='\e[4;33m' # Yellow
export COLOR_U_BLUE='\e[4;34m' # Blue
export COLOR_U_PURPLE='\e[4;35m' # Purple
export COLOR_U_CYAN='\e[4;36m' # Cyan
export COLOR_U_WHITE='\e[4;37m' # White
# Background
export COLOR_BG_BLACK='\e[40m' # Black
export COLOR_BG_RED='\e[41m' # Red
export COLOR_BG_GREEN='\e[42m' # Green
export COLOR_BG_YELLOW='\e[43m' # Yellow
export COLOR_BG_BLUE='\e[44m' # Blue
export COLOR_BG_PURPLE='\e[45m' # Purple
export COLOR_BG_CYAN='\e[46m' # Cyan
export COLOR_BG_WHITE='\e[47m' # White
# High Intensity
export COLOR_HI_BLACK='\e[0;90m' # Black
export COLOR_HI_RED='\e[0;91m' # Red
export COLOR_HI_GREEN='\e[0;92m' # Green
export COLOR_HI_YELLOW='\e[0;93m' # Yellow
export COLOR_HI_BLUE='\e[0;94m' # Blue
export COLOR_HI_PURPLE='\e[0;95m' # Purple
export COLOR_HI_CYAN='\e[0;96m' # Cyan
export COLOR_HI_WHITE='\e[0;97m' # White
# Bold High Intensity
export COLOR_BHI_BLACK='\e[1;90m' # Black
export COLOR_BHI_RED='\e[1;91m' # Red
export COLOR_BHI_GREEN='\e[1;92m' # Green
export COLOR_BHI_YELLOW='\e[1;93m' # Yellow
export COLOR_BHI_BLUE='\e[1;94m' # Blue
export COLOR_BHI_PURPLE='\e[1;95m' # Purple
export COLOR_BHI_CYAN='\e[1;96m' # Cyan
export COLOR_BHI_WHITE='\e[1;97m' # White
# High Intensity backgrounds
export COLOR_BG_HI_BLACK='\e[0;100m' # Black
export COLOR_BG_HI_RED='\e[0;101m' # Red
export COLOR_BG_HI_GREEN='\e[0;102m' # Green
export COLOR_BG_HI_YELLOW='\e[0;103m' # Yellow
export COLOR_BG_HI_BLUE='\e[0;104m' # Blue
export COLOR_BG_HI_PURPLE='\e[10;95m' # Purple
export COLOR_BG_HI_CYAN='\e[0;106m' # Cyan
export COLOR_BG_HI_WHITE='\e[0;107m' # White
if [ "$TERM" = "linux" ]; then
echo -en "\e]P0000000" #black
echo -en "\e]P82B2B2B" #darkgrey
echo -en "\e]P1D75F5F" #darkred
echo -en "\e]P9E33636" #red
echo -en "\e]P287AF5F" #darkgreen
echo -en "\e]PA98E34D" #green
echo -en "\e]P3D7AF87" #brown
echo -en "\e]PBFFD75F" #yellow
echo -en "\e]P48787AF" #darkblue
echo -en "\e]PC7373C9" #blue
echo -en "\e]P5BD53A5" #darkmagenta
echo -en "\e]PDD633B2" #magenta
echo -en "\e]P65FAFAF" #darkcyan
echo -en "\e]PE44C9C9" #cyan
echo -en "\e]P7E5E5E5" #lightgrey
echo -en "\e]PFFFFFFF" #white
fi