]> git.wh0rd.org - home.git/blob - .bin/bash-colors
add color export for other scripts
[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 echo "${c}"
14 done
15
16 exit 0
17 fi
18
19 for i in {0..1} ; do
20 for j in {30..37} ; do
21 echo -e '\e['"${i};${j}mthis color is: \\\\e[${i};${j}m"
22 done
23 done