Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (54 sloc) 1.566 kB
e071edd Started switching over to MacVim, updated editor settings accordingly.
Mat Schaffer authored
1 if [ "${TERM}" == "dumb" ]; then
2 export COLOR_NONE=''
3 export COLOR_WHITE=''
4 export COLOR_BLACK=''
5 export COLOR_BLUE=''
6 export COLOR_LIGHT_BLUE=''
7 export COLOR_GREEN=''
8 export COLOR_LIGHT_GREEN=''
9 export COLOR_CYAN=''
10 export COLOR_LIGHT_CYAN=''
11 export COLOR_RED=''
12 export COLOR_LIGHT_RED=''
13 export COLOR_PURPLE=''
14 export COLOR_LIGHT_PURPLE=''
15 export COLOR_BROWN=''
16 export COLOR_YELLOW=''
17 export COLOR_GRAY=''
18 export COLOR_LIGHT_GRAY=''
19 else
20 export COLOR_NONE=''
21 export COLOR_WHITE=''
22 export COLOR_BLACK=''
23 export COLOR_BLUE=''
24 export COLOR_LIGHT_BLUE=''
25 export COLOR_GREEN=''
26 export COLOR_LIGHT_GREEN=''
27 export COLOR_CYAN=''
28 export COLOR_LIGHT_CYAN=''
29 export COLOR_RED=''
30 export COLOR_LIGHT_RED=''
31 export COLOR_PURPLE=''
32 export COLOR_LIGHT_PURPLE=''
33 export COLOR_BROWN=''
34 export COLOR_YELLOW=''
35 export COLOR_GRAY=''
36 export COLOR_LIGHT_GRAY=''
37 fi
604e6e2 Added a more comprehensive colors display command that I found online.
Mat Schaffer authored
38
39 # From http://pastie.org/144897
40 colors() {
41 T='gYw' # The test text
42 echo -e "\n 40m 41m 42m 43m\
43 44m 45m 46m 47m";
44
45 for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
46 '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
47 ' 36m' '1;36m' ' 37m' '1;37m'; do
48 FG=${FGs// /}
49 echo -en " $FGs \033[$FG $T "
50 for BG in 40m 41m 42m 43m 44m 45m 46m 47m; do
51 echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
52 done
53 echo
54 done
55 echo
e071edd Started switching over to MacVim, updated editor settings accordingly.
Mat Schaffer authored
56 }
Something went wrong with that request. Please try again.