File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ Make echo colorful with easier method. In [bash](https://www.gnu.org/software/ba
2929
3030* See [ color table] ( https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/master/table.txt )
3131
32+ ## Notes
33+
34+ * If you have [ lolcat] ( https://github.com/busyloop/lolcat ) , you can also try ` echo.Rainbow ` .
35+
3236## Screenshot
3337
3438![ Screenshot] ( https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/master/Demo.png )
Original file line number Diff line number Diff line change @@ -239,3 +239,11 @@ function echo.LightBoldULCyan()
239239{
240240 echo -e " \e[4;1;96m$@ \e[m"
241241}
242+ function echo.Rainbow()
243+ {
244+ if [ " type lolcat" ]; then
245+ echo " $@ " | lolcat
246+ else
247+ echo " $@ "
248+ fi
249+ }
Original file line number Diff line number Diff line change 3737 done
3838 done
3939done
40+
41+ cat << LOLCAT >> "$dist "
42+ function echo.Rainbow()
43+ {
44+ if [ "type lolcat" ]; then
45+ echo "\$ @" | lolcat
46+ else
47+ echo "\$ @"
48+ fi
49+ }
50+ LOLCAT
You canβt perform that action at this time.
0 commit comments