Skip to content

Commit 57336d6

Browse files
v0.0.5, regenerate dist files
1 parent 6c8f5a8 commit 57336d6

File tree

6 files changed

+23
-3
lines changed

6 files changed

+23
-3
lines changed

β€ŽREADME.md

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

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

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

5050
## Supported colors
5151

52-
* See [color table](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/v0.0.4/table.txt)
52+
* See [color table](https://cdn.rawgit.com/PeterDaveHello/ColorEchoForShell/v0.0.5/table.txt)
5353

5454
## Notes
5555

β€Ždist/ColorEcho.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,7 @@ function echo.Rainbow
487487
echo "$@"
488488
fi
489489
}
490+
function echo.Reset
491+
{
492+
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
493+
}

β€Ždist/ColorEcho.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,7 @@ function echo.Rainbow
487487
echo "$argv"
488488
end
489489
end
490+
function echo.Reset
491+
492+
echo "$argv" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
493+
end

β€Ždist/ColorEcho.ksh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,7 @@ function echoRainbow
487487
echo "$@"
488488
fi
489489
}
490+
function echoReset
491+
{
492+
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
493+
}

β€Ždist/ColorEcho.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,7 @@ echoLightBoldULBrown()
487487
echo "$@"
488488
fi
489489
}
490+
echoReset()
491+
{
492+
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
493+
}

β€Ždist/ColorEcho.zsh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env zsh
22

33
function echo.Black
44
{
@@ -487,3 +487,7 @@ function echo.Rainbow
487487
echo "$@"
488488
fi
489489
}
490+
function echo.Reset
491+
{
492+
echo "$@" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
493+
}

0 commit comments

Comments
Β (0)