Skip to content

Commit bbf5c4d

Browse files
add colorEcho.sh
1 parent 7fce07f commit bbf5c4d

File tree

1 file changed

+241
-0
lines changed

1 file changed

+241
-0
lines changed

β€ŽcolorEcho.shβ€Ž

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
#!/usr/bin/env bash
2+
3+
function echo.Red()
4+
{
5+
echo -e "\e[31m$1\e[m"
6+
}
7+
8+
function echo.ULRed()
9+
{
10+
echo -e "\e[4;31m$1\e[m"
11+
}
12+
13+
function echo.BoldRed()
14+
{
15+
echo -e "\e[1;31m$1\e[m"
16+
}
17+
18+
function echo.BoldULRed()
19+
{
20+
echo -e "\e[4;1;31m$1\e[m"
21+
}
22+
23+
function echo.LightRed()
24+
{
25+
echo -e "\e[91m$1\e[m"
26+
}
27+
28+
function echo.LightULRed()
29+
{
30+
echo -e "\e[4;91m$1\e[m"
31+
}
32+
33+
function echo.LightBoldRed()
34+
{
35+
echo -e "\e[1;91m$1\e[m"
36+
}
37+
38+
function echo.LightBoldULRed()
39+
{
40+
echo -e "\e[4;1;91m$1\e[m"
41+
}
42+
43+
function echo.Green()
44+
{
45+
echo -e "\e[32m$1\e[m"
46+
}
47+
48+
function echo.ULGreen()
49+
{
50+
echo -e "\e[4;32m$1\e[m"
51+
}
52+
53+
function echo.BoldGreen()
54+
{
55+
echo -e "\e[1;32m$1\e[m"
56+
}
57+
58+
function echo.BoldULGreen()
59+
{
60+
echo -e "\e[4;1;32m$1\e[m"
61+
}
62+
63+
function echo.LightGreen()
64+
{
65+
echo -e "\e[92m$1\e[m"
66+
}
67+
68+
function echo.LightULGreen()
69+
{
70+
echo -e "\e[4;92m$1\e[m"
71+
}
72+
73+
function echo.LightBoldGreen()
74+
{
75+
echo -e "\e[1;92m$1\e[m"
76+
}
77+
78+
function echo.LightBoldULGreen()
79+
{
80+
echo -e "\e[4;1;92m$1\e[m"
81+
}
82+
83+
function echo.Yellow()
84+
{
85+
echo -e "\e[33m$1\e[m"
86+
}
87+
88+
function echo.ULYellow()
89+
{
90+
echo -e "\e[4;33m$1\e[m"
91+
}
92+
93+
function echo.BoldYellow()
94+
{
95+
echo -e "\e[1;33m$1\e[m"
96+
}
97+
98+
function echo.BoldULYellow()
99+
{
100+
echo -e "\e[4;1;33m$1\e[m"
101+
}
102+
103+
function echo.LightYellow()
104+
{
105+
echo -e "\e[93m$1\e[m"
106+
}
107+
108+
function echo.LightULYellow()
109+
{
110+
echo -e "\e[4;93m$1\e[m"
111+
}
112+
113+
function echo.LightBoldYellow()
114+
{
115+
echo -e "\e[1;93m$1\e[m"
116+
}
117+
118+
function echo.LightBoldULYellow()
119+
{
120+
echo -e "\e[4;1;93m$1\e[m"
121+
}
122+
123+
function echo.Blue()
124+
{
125+
echo -e "\e[34m$1\e[m"
126+
}
127+
128+
function echo.ULBlue()
129+
{
130+
echo -e "\e[4;34m$1\e[m"
131+
}
132+
133+
function echo.BoldBlue()
134+
{
135+
echo -e "\e[1;34m$1\e[m"
136+
}
137+
138+
function echo.BoldULBlue()
139+
{
140+
echo -e "\e[4;1;34m$1\e[m"
141+
}
142+
143+
function echo.LightBlue()
144+
{
145+
echo -e "\e[94m$1\e[m"
146+
}
147+
148+
function echo.LightULBlue()
149+
{
150+
echo -e "\e[4;94m$1\e[m"
151+
}
152+
153+
function echo.LightBoldBlue()
154+
{
155+
echo -e "\e[1;94m$1\e[m"
156+
}
157+
158+
function echo.LightBoldULBlue()
159+
{
160+
echo -e "\e[4;1;94m$1\e[m"
161+
}
162+
163+
function echo.Magenta()
164+
{
165+
echo -e "\e[35m$1\e[m"
166+
}
167+
168+
function echo.ULMagenta()
169+
{
170+
echo -e "\e[4;35m$1\e[m"
171+
}
172+
173+
function echo.BoldMagenta()
174+
{
175+
echo -e "\e[1;35m$1\e[m"
176+
}
177+
178+
function echo.BoldULMagenta()
179+
{
180+
echo -e "\e[4;1;35m$1\e[m"
181+
}
182+
183+
function echo.LightMagenta()
184+
{
185+
echo -e "\e[95m$1\e[m"
186+
}
187+
188+
function echo.LightULMagenta()
189+
{
190+
echo -e "\e[4;95m$1\e[m"
191+
}
192+
193+
function echo.LightBoldMagenta()
194+
{
195+
echo -e "\e[1;95m$1\e[m"
196+
}
197+
198+
function echo.LightBoldULMagenta()
199+
{
200+
echo -e "\e[4;1;95m$1\e[m"
201+
}
202+
203+
function echo.Cyan()
204+
{
205+
echo -e "\e[36m$1\e[m"
206+
}
207+
208+
function echo.ULCyan()
209+
{
210+
echo -e "\e[4;36m$1\e[m"
211+
}
212+
213+
function echo.BoldCyan()
214+
{
215+
echo -e "\e[1;36m$1\e[m"
216+
}
217+
218+
function echo.BoldULCyan()
219+
{
220+
echo -e "\e[4;1;36m$1\e[m"
221+
}
222+
223+
function echo.LightCyan()
224+
{
225+
echo -e "\e[96m$1\e[m"
226+
}
227+
228+
function echo.LightULCyan()
229+
{
230+
echo -e "\e[4;96m$1\e[m"
231+
}
232+
233+
function echo.LightBoldCyan()
234+
{
235+
echo -e "\e[1;96m$1\e[m"
236+
}
237+
238+
function echo.LightBoldULCyan()
239+
{
240+
echo -e "\e[4;1;96m$1\e[m"
241+
}

0 commit comments

Comments
Β (0)