]> git.wh0rd.org - home.git/blob - .bin/bash-colors
disable colors if logging
[home.git] / .bin / bash-colors
1 #!/bin/bash
2
3 if [[ $1 == "--env" ]] ; then
4 colors=(
5 GOOD="\$'\e[32;01m'"
6 WARN="\$'\e[33;01m'"
7 BAD="\$'\e[31;01m'"
8 HILITE="\$'\e[36;01m'"
9 BRACKET="\$'\e[34;0m'"
10 NORMAL="\$'\e[0m'"
11 )
12 for c in "${colors[@]}" ; do
13 [[ -t 0 ]] || c="${c%=*}="
14 echo "${c}"
15 done
16
17 exit 0
18 fi
19
20 for i in {0..1} ; do
21 for j in {30..37} ; do
22 echo -e '\e['"${i};${j}mthis color is: \\\\e[${i};${j}m"
23 done
24 done