-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.bash
99 lines (89 loc) · 2.14 KB
/
colors.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# This file is generated by https://github.com/adoyle-h/shell-general-colors
# Command: shell-general-colors --map -p __prompt_
# Author: ADoyle <adoyle.h@gmail.com>
# License: BSD 3-clause License
# Attentions: GREY may not work in some shells
declare -g -A __prompt_colors=(
# General Foreground Colors
[BLACK]='\e[30m'
[RED]='\e[31m'
[GREEN]='\e[32m'
[YELLOW]='\e[33m'
[BLUE]='\e[34m'
[PURPLE]='\e[35m'
[CYAN]='\e[36m'
[WHITE]='\e[37m'
[GREY]='\e[90m'
# General Background Colors
[BG_BLACK]='\e[30;40m'
[BG_RED]='\e[31;41m'
[BG_GREEN]='\e[32;42m'
[BG_YELLOW]='\e[33;43m'
[BG_BLUE]='\e[34;44m'
[BG_PURPLE]='\e[35;45m'
[BG_CYAN]='\e[36;46m'
[BG_WHITE]='\e[37;47m'
[BG_GREY]='\e[100m'
# BOLD
[BOLD_BLACK]='\e[30;1m'
[BOLD_RED]='\e[31;1m'
[BOLD_GREEN]='\e[32;1m'
[BOLD_YELLOW]='\e[33;1m'
[BOLD_BLUE]='\e[34;1m'
[BOLD_PURPLE]='\e[35;1m'
[BOLD_CYAN]='\e[36;1m'
[BOLD_WHITE]='\e[37;1m'
[BOLD_GREY]='\e[1;90m'
# UNDERLINE
[UL_BLACK]='\e[30;4m'
[UL_RED]='\e[31;4m'
[UL_GREEN]='\e[32;4m'
[UL_YELLOW]='\e[33;4m'
[UL_BLUE]='\e[34;4m'
[UL_PURPLE]='\e[35;4m'
[UL_CYAN]='\e[36;4m'
[UL_WHITE]='\e[37;4m'
[UL_GREY]='\e[4;90m'
# BLINK
[BLK_BLACK]='\e[30;5m'
[BLK_RED]='\e[31;5m'
[BLK_GREEN]='\e[32;5m'
[BLK_YELLOW]='\e[33;5m'
[BLK_BLUE]='\e[34;5m'
[BLK_PURPLE]='\e[35;5m'
[BLK_CYAN]='\e[36;5m'
[BLK_WHITE]='\e[37;5m'
[BLK_GREY]='\e[5;90m'
# REVERSE
[REV_BLACK]='\e[30;7m'
[REV_RED]='\e[31;7m'
[REV_GREEN]='\e[32;7m'
[REV_YELLOW]='\e[33;7m'
[REV_BLUE]='\e[34;7m'
[REV_PURPLE]='\e[35;7m'
[REV_CYAN]='\e[36;7m'
[REV_WHITE]='\e[37;7m'
[REV_GREY]='\e[7;90m'
# BRIGHT
[BRI_BLACK]='\e[90m'
[BRI_RED]='\e[91m'
[BRI_GREEN]='\e[92m'
[BRI_YELLOW]='\e[93m'
[BRI_BLUE]='\e[94m'
[BRI_PURPLE]='\e[95m'
[BRI_CYAN]='\e[96m'
[BRI_WHITE]='\e[97m'
# BRIGHT & BOLD
[BRI_BOLD_BLACK]='\e[90;1m'
[BRI_BOLD_RED]='\e[91;1m'
[BRI_BOLD_GREEN]='\e[92;1m'
[BRI_BOLD_YELLOW]='\e[93;1m'
[BRI_BOLD_BLUE]='\e[94;1m'
[BRI_BOLD_PURPLE]='\e[95;1m'
[BRI_BOLD_CYAN]='\e[96;1m'
[BRI_BOLD_WHITE]='\e[97;1m'
# RESET
[RESET_FG]='\e[39m'
[RESET_BG]='\e[49m'
[RESET_ALL]='\e[0m'
)