Skip to content

Commit

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

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

Expand Down Expand Up @@ -49,7 +49,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/v0.0.4/table.txt)
* See [color table](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/v0.0.5/table.txt)

## Notes

Expand Down
4 changes: 4 additions & 0 deletions dist/ColorEcho.bash
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,7 @@ function echo.Rainbow
echo "$@"
fi
}
function echo.Reset
{
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
}
4 changes: 4 additions & 0 deletions dist/ColorEcho.fish
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,7 @@ function echo.Rainbow
echo "$argv"
end
end
function echo.Reset

echo "$argv" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
end
4 changes: 4 additions & 0 deletions dist/ColorEcho.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,7 @@ function echoRainbow
echo "$@"
fi
}
function echoReset
{
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
}
4 changes: 4 additions & 0 deletions dist/ColorEcho.sh
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,7 @@ echoLightBoldULBrown()
echo "$@"
fi
}
echoReset()
{
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
}
6 changes: 5 additions & 1 deletion dist/ColorEcho.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env zsh

function echo.Black
{
Expand Down Expand Up @@ -487,3 +487,7 @@ function echo.Rainbow
echo "$@"
fi
}
function echo.Reset
{
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
}

0 comments on commit 57336d6

Please sign in to comment.