Skip to content

Commit 0a830e6

Browse files
v0.0.4, regenerate dist files
1 parent 6ed3467 commit 0a830e6

File tree

6 files changed

+1451
-2
lines changed

6 files changed

+1451
-2
lines changed

β€ŽREADME.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Make echo colorful with easier method. In [bash](https://www.gnu.org/software/ba
44
## Installation
55

66
* Download the script, choice the once for your shell by its extension in the filename.
7-
- For example [dist/ColorEcho.bash](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/master/dist/ColorEcho.bash) for bash.
7+
- For example [dist/ColorEcho.bash](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/v0.0.4/dist/ColorEcho.bash) for bash.
88
* Add a line to include the script in your shell rc or run it directly:
99
`. ./ColorEcho.bash`
1010

@@ -28,7 +28,7 @@ Make echo colorful with easier method. In [bash](https://www.gnu.org/software/ba
2828

2929
## Supported colors
3030

31-
* See [color table](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/master/table.txt)
31+
* See [color table](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/v0.0.4/table.txt)
3232

3333
## Notes
3434

β€Ždist/ColorEcho.bash

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
#!/usr/bin/env bash
22

3+
function echo.Black
4+
{
5+
echo -e "\e[30m$@\e[m"
6+
}
7+
8+
function echo.ULBlack
9+
{
10+
echo -e "\e[4;30m$@\e[m"
11+
}
12+
13+
function echo.BoldBlack
14+
{
15+
echo -e "\e[1;30m$@\e[m"
16+
}
17+
18+
function echo.BoldULBlack
19+
{
20+
echo -e "\e[4;1;30m$@\e[m"
21+
}
22+
23+
function echo.LightBlack
24+
{
25+
echo -e "\e[90m$@\e[m"
26+
}
27+
28+
function echo.LightULBlack
29+
{
30+
echo -e "\e[4;90m$@\e[m"
31+
}
32+
33+
function echo.LightBoldBlack
34+
{
35+
echo -e "\e[1;90m$@\e[m"
36+
}
37+
38+
function echo.LightBoldULBlack
39+
{
40+
echo -e "\e[4;1;90m$@\e[m"
41+
}
42+
343
function echo.Red
444
{
545
echo -e "\e[31m$@\e[m"
@@ -239,6 +279,206 @@ function echo.LightBoldULCyan
239279
{
240280
echo -e "\e[4;1;96m$@\e[m"
241281
}
282+
283+
function echo.White
284+
{
285+
echo -e "\e[37m$@\e[m"
286+
}
287+
288+
function echo.ULWhite
289+
{
290+
echo -e "\e[4;37m$@\e[m"
291+
}
292+
293+
function echo.BoldWhite
294+
{
295+
echo -e "\e[1;37m$@\e[m"
296+
}
297+
298+
function echo.BoldULWhite
299+
{
300+
echo -e "\e[4;1;37m$@\e[m"
301+
}
302+
303+
function echo.LightWhite
304+
{
305+
echo -e "\e[97m$@\e[m"
306+
}
307+
308+
function echo.LightULWhite
309+
{
310+
echo -e "\e[4;97m$@\e[m"
311+
}
312+
313+
function echo.LightBoldWhite
314+
{
315+
echo -e "\e[1;97m$@\e[m"
316+
}
317+
318+
function echo.LightBoldULWhite
319+
{
320+
echo -e "\e[4;1;97m$@\e[m"
321+
}
322+
323+
function echo.Purple
324+
{
325+
echo -e "\e[3;38;5;93m$@\e[m"
326+
}
327+
328+
function echo.ULPurple
329+
{
330+
echo -e "\e[4;3;38;5;93m$@\e[m"
331+
}
332+
333+
function echo.BoldPurple
334+
{
335+
echo -e "\e[1;3;38;5;93m$@\e[m"
336+
}
337+
338+
function echo.BoldULPurple
339+
{
340+
echo -e "\e[4;1;3;38;5;93m$@\e[m"
341+
}
342+
343+
function echo.LightPurple
344+
{
345+
echo -e "\e[9;38;5;93m$@\e[m"
346+
}
347+
348+
function echo.LightULPurple
349+
{
350+
echo -e "\e[4;9;38;5;93m$@\e[m"
351+
}
352+
353+
function echo.LightBoldPurple
354+
{
355+
echo -e "\e[1;9;38;5;93m$@\e[m"
356+
}
357+
358+
function echo.LightBoldULPurple
359+
{
360+
echo -e "\e[4;1;9;38;5;93m$@\e[m"
361+
}
362+
363+
function echo.Orange
364+
{
365+
echo -e "\e[3;38;5;202m$@\e[m"
366+
}
367+
368+
function echo.ULOrange
369+
{
370+
echo -e "\e[4;3;38;5;202m$@\e[m"
371+
}
372+
373+
function echo.BoldOrange
374+
{
375+
echo -e "\e[1;3;38;5;202m$@\e[m"
376+
}
377+
378+
function echo.BoldULOrange
379+
{
380+
echo -e "\e[4;1;3;38;5;202m$@\e[m"
381+
}
382+
383+
function echo.LightOrange
384+
{
385+
echo -e "\e[9;38;5;202m$@\e[m"
386+
}
387+
388+
function echo.LightULOrange
389+
{
390+
echo -e "\e[4;9;38;5;202m$@\e[m"
391+
}
392+
393+
function echo.LightBoldOrange
394+
{
395+
echo -e "\e[1;9;38;5;202m$@\e[m"
396+
}
397+
398+
function echo.LightBoldULOrange
399+
{
400+
echo -e "\e[4;1;9;38;5;202m$@\e[m"
401+
}
402+
403+
function echo.Pink
404+
{
405+
echo -e "\e[3;38;5;206m$@\e[m"
406+
}
407+
408+
function echo.ULPink
409+
{
410+
echo -e "\e[4;3;38;5;206m$@\e[m"
411+
}
412+
413+
function echo.BoldPink
414+
{
415+
echo -e "\e[1;3;38;5;206m$@\e[m"
416+
}
417+
418+
function echo.BoldULPink
419+
{
420+
echo -e "\e[4;1;3;38;5;206m$@\e[m"
421+
}
422+
423+
function echo.LightPink
424+
{
425+
echo -e "\e[9;38;5;206m$@\e[m"
426+
}
427+
428+
function echo.LightULPink
429+
{
430+
echo -e "\e[4;9;38;5;206m$@\e[m"
431+
}
432+
433+
function echo.LightBoldPink
434+
{
435+
echo -e "\e[1;9;38;5;206m$@\e[m"
436+
}
437+
438+
function echo.LightBoldULPink
439+
{
440+
echo -e "\e[4;1;9;38;5;206m$@\e[m"
441+
}
442+
443+
function echo.Brown
444+
{
445+
echo -e "\e[3;38;5;52m$@\e[m"
446+
}
447+
448+
function echo.ULBrown
449+
{
450+
echo -e "\e[4;3;38;5;52m$@\e[m"
451+
}
452+
453+
function echo.BoldBrown
454+
{
455+
echo -e "\e[1;3;38;5;52m$@\e[m"
456+
}
457+
458+
function echo.BoldULBrown
459+
{
460+
echo -e "\e[4;1;3;38;5;52m$@\e[m"
461+
}
462+
463+
function echo.LightBrown
464+
{
465+
echo -e "\e[9;38;5;52m$@\e[m"
466+
}
467+
468+
function echo.LightULBrown
469+
{
470+
echo -e "\e[4;9;38;5;52m$@\e[m"
471+
}
472+
473+
function echo.LightBoldBrown
474+
{
475+
echo -e "\e[1;9;38;5;52m$@\e[m"
476+
}
477+
478+
function echo.LightBoldULBrown
479+
{
480+
echo -e "\e[4;1;9;38;5;52m$@\e[m"
481+
}
242482
function echo.Rainbow
243483
{
244484
if [ "type lolcat" ]; then

0 commit comments

Comments
Β (0)