Skip to content

Commit

Permalink
v0.0.4, regenerate dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jun 10, 2015
1 parent 6ed3467 commit 0a830e6
Show file tree
Hide file tree
Showing 6 changed files with 1,451 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Make echo colorful with easier method. In [bash](https://www.gnu.org/software/ba
## Installation

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

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

## Supported colors

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

## Notes

Expand Down
240 changes: 240 additions & 0 deletions dist/ColorEcho.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
#!/usr/bin/env bash

function echo.Black
{
echo -e "\e[30m$@\e[m"
}

function echo.ULBlack
{
echo -e "\e[4;30m$@\e[m"
}

function echo.BoldBlack
{
echo -e "\e[1;30m$@\e[m"
}

function echo.BoldULBlack
{
echo -e "\e[4;1;30m$@\e[m"
}

function echo.LightBlack
{
echo -e "\e[90m$@\e[m"
}

function echo.LightULBlack
{
echo -e "\e[4;90m$@\e[m"
}

function echo.LightBoldBlack
{
echo -e "\e[1;90m$@\e[m"
}

function echo.LightBoldULBlack
{
echo -e "\e[4;1;90m$@\e[m"
}

function echo.Red
{
echo -e "\e[31m$@\e[m"
Expand Down Expand Up @@ -239,6 +279,206 @@ function echo.LightBoldULCyan
{
echo -e "\e[4;1;96m$@\e[m"
}

function echo.White
{
echo -e "\e[37m$@\e[m"
}

function echo.ULWhite
{
echo -e "\e[4;37m$@\e[m"
}

function echo.BoldWhite
{
echo -e "\e[1;37m$@\e[m"
}

function echo.BoldULWhite
{
echo -e "\e[4;1;37m$@\e[m"
}

function echo.LightWhite
{
echo -e "\e[97m$@\e[m"
}

function echo.LightULWhite
{
echo -e "\e[4;97m$@\e[m"
}

function echo.LightBoldWhite
{
echo -e "\e[1;97m$@\e[m"
}

function echo.LightBoldULWhite
{
echo -e "\e[4;1;97m$@\e[m"
}

function echo.Purple
{
echo -e "\e[3;38;5;93m$@\e[m"
}

function echo.ULPurple
{
echo -e "\e[4;3;38;5;93m$@\e[m"
}

function echo.BoldPurple
{
echo -e "\e[1;3;38;5;93m$@\e[m"
}

function echo.BoldULPurple
{
echo -e "\e[4;1;3;38;5;93m$@\e[m"
}

function echo.LightPurple
{
echo -e "\e[9;38;5;93m$@\e[m"
}

function echo.LightULPurple
{
echo -e "\e[4;9;38;5;93m$@\e[m"
}

function echo.LightBoldPurple
{
echo -e "\e[1;9;38;5;93m$@\e[m"
}

function echo.LightBoldULPurple
{
echo -e "\e[4;1;9;38;5;93m$@\e[m"
}

function echo.Orange
{
echo -e "\e[3;38;5;202m$@\e[m"
}

function echo.ULOrange
{
echo -e "\e[4;3;38;5;202m$@\e[m"
}

function echo.BoldOrange
{
echo -e "\e[1;3;38;5;202m$@\e[m"
}

function echo.BoldULOrange
{
echo -e "\e[4;1;3;38;5;202m$@\e[m"
}

function echo.LightOrange
{
echo -e "\e[9;38;5;202m$@\e[m"
}

function echo.LightULOrange
{
echo -e "\e[4;9;38;5;202m$@\e[m"
}

function echo.LightBoldOrange
{
echo -e "\e[1;9;38;5;202m$@\e[m"
}

function echo.LightBoldULOrange
{
echo -e "\e[4;1;9;38;5;202m$@\e[m"
}

function echo.Pink
{
echo -e "\e[3;38;5;206m$@\e[m"
}

function echo.ULPink
{
echo -e "\e[4;3;38;5;206m$@\e[m"
}

function echo.BoldPink
{
echo -e "\e[1;3;38;5;206m$@\e[m"
}

function echo.BoldULPink
{
echo -e "\e[4;1;3;38;5;206m$@\e[m"
}

function echo.LightPink
{
echo -e "\e[9;38;5;206m$@\e[m"
}

function echo.LightULPink
{
echo -e "\e[4;9;38;5;206m$@\e[m"
}

function echo.LightBoldPink
{
echo -e "\e[1;9;38;5;206m$@\e[m"
}

function echo.LightBoldULPink
{
echo -e "\e[4;1;9;38;5;206m$@\e[m"
}

function echo.Brown
{
echo -e "\e[3;38;5;52m$@\e[m"
}

function echo.ULBrown
{
echo -e "\e[4;3;38;5;52m$@\e[m"
}

function echo.BoldBrown
{
echo -e "\e[1;3;38;5;52m$@\e[m"
}

function echo.BoldULBrown
{
echo -e "\e[4;1;3;38;5;52m$@\e[m"
}

function echo.LightBrown
{
echo -e "\e[9;38;5;52m$@\e[m"
}

function echo.LightULBrown
{
echo -e "\e[4;9;38;5;52m$@\e[m"
}

function echo.LightBoldBrown
{
echo -e "\e[1;9;38;5;52m$@\e[m"
}

function echo.LightBoldULBrown
{
echo -e "\e[4;1;9;38;5;52m$@\e[m"
}
function echo.Rainbow
{
if [ "type lolcat" ]; then
Expand Down

0 comments on commit 0a830e6

Please sign in to comment.