diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-14 10:40:38 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-14 10:40:38 +0200 |
commit | a3a16705841f7af375f8a7000649fcf289213116 (patch) | |
tree | 16253f4777092bd47257e863ec98d5c0d944c4e6 | |
parent | 9042d78d0eee1cbf72f74c3c37328208e03791c7 (diff) | |
download | bin-a3a16705841f7af375f8a7000649fcf289213116.zip bin-a3a16705841f7af375f8a7000649fcf289213116.tar.gz |
add colors
-rwxr-xr-x | colors | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +#! /bin/sh + +RESET="\033[0m" +BLACK="\033[0;30m" +RED="\033[0;31m" +GREEN="\033[0;32m" +BROWN="\033[0;33m" +BLUE="\033[0;34m" +PURPLE="\033[0;35m" +CYAN="\033[0;36m" +GRAY="\033[0;37m" + +DARK_GRAY="\033[1;37m" +LIGHT_RED="\033[1;31m" +LIGHT_GREEN="\033[1;32m" +YELLOW="\033[1;33m" +LIGHT_BLUE="\033[1;34m" +LIGHT_PURPLE="\033[1;35m" +LIGHT_CYAN="\033[1;36m" +WHITE="\033[1;37m" + +function show_colors () { + for color in $BLACK $RED $GREEN $BROWN $BLUE $PURPLE $CYAN $GRAY \ + $DARK_GRAY $LIGHT_RED $LIGHT_GREEN $YELLOW $LIGHT_BLUE $LIGHT_PURPLE $LIGHT_CYAN $WHITE; do + echo -e ">${color}test${RESET}<" + done +} |