Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork18
Make 🐚(shell) 's 💬 (`echo`) to be 🎨 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟 One simple command for vibrant text output! 💫
License
PeterDaveHello/ColorEchoForShell
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ColorEchoForShell brings life to your shell scripts by making text output colorful and meaningful. Whether you're debugging, displaying warnings, or showcasing errors, ColorEchoForShell enhances readability and helps you quickly identify messages in various shell environments.
Download the appropriate script for your shell (e.g., bash, sh, fish, ksh, zsh).
- For bash, downloaddist/ColorEcho.bash.
- For other shells, choose the corresponding file from thedist directory.
Source the script in your shell:
. ./ColorEcho.bash# For bash
Replace
ColorEcho.bashwith the appropriate filename for your shell.Try a colorful echo:
echo.Cyan"Hello, colorful world!"
- Versatile Compatibility: Works withbash,sh,fish,ksh, andzsh.
- Easy to Use: Simple syntax for applying styles and colors.
- Customizable: Supports various styles, including bold, italic, underline, blink, and strikethrough.
- Environment-Dependent Colors: Please note thatcertain colors may vary depending on the terminal and environment settings.
- Installation
- Usage
- Supported Shells
- Supported Styles
- Supported Colors
- Additional Features
- Community Contribution
- Screenshots
- Demo
- License
- Author
To utilize ColorEchoForShell in your shell scripts, download the appropriate script for your specific shell from thedist directory. Then, include the ColorEchoForShell script at the beginning of your script by sourcing it:
source ./ColorEcho.bashReplace./ColorEcho.bash with the relative path to the downloaded ColorEchoForShell script.
This inclusion will enable all the features of ColorEchoForShell within your script.
Use theecho.StyleColor syntax to print colorful text. Inksh/sh, omit the. dot symbol. You can combine up to two styles; the order doesn't matter.
echo.Cyan: Prints text in cyan color.echo.ICyan: Prints text in italic cyan.echo.ULCyan: Prints text in underline cyan.echo.BLCyan: Prints text in blinking cyan.echo.STCyan: Prints text with strikethrough in cyan.echo.BoldCyan: Prints text in bold cyan.echo.BoldULCyan: Prints text in bold underline cyan.echo.ULBoldCyan: Prints text in underline bold cyan.
- Bourne shell (sh)
- Bourne-Again shell (bash)
- Z shell (Zsh)
- Korn shell (ksh)
- Friendly interactive shell (fish)
- Bold:
Bold - Italic:
I - Underline:
UL - Blink:
BL - Strikethrough:
ST
- Refer to thecolor table.
- Use the
Lightkeyword for lighter versions of standard colors (coded in range 0~7), e.g.,LightYellow.
- Rainbow Output: If you havelolcat, try
echo.Rainbow.
We welcome contributions, bug reports, and suggestions. Feel free to open an issue or submit a pull request.
GPL-2.0 (GNU GENERAL PUBLIC LICENSE Version 2)
About
Make 🐚(shell) 's 💬 (`echo`) to be 🎨 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟 One simple command for vibrant text output! 💫
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

