From a3a16705841f7af375f8a7000649fcf289213116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 14 Jun 2011 10:40:38 +0200 Subject: add colors --- colors | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 colors diff --git a/colors b/colors new file mode 100755 index 0000000..418d171 --- /dev/null +++ b/colors @@ -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 +} -- cgit v1.1-2-g2b99