Home

Awesome

ColorEchoForShell

Build Status License badge

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.

Quick Start

  1. Download the appropriate script for your shell (e.g., bash, sh, fish, ksh, zsh).

  2. Source the script in your shell:

    . ./ColorEcho.bash # For bash
    

    Replace ColorEcho.bash with the appropriate filename for your shell.

  3. Try a colorful echo:

    echo.Cyan "Hello, colorful world!"
    

Features

Table of Contents

Installation

To utilize ColorEchoForShell in your shell scripts, download the appropriate script for your specific shell from the dist directory. Then, include the ColorEchoForShell script at the beginning of your script by sourcing it:

source ./ColorEcho.bash

Replace ./ColorEcho.bash with the relative path to the downloaded ColorEchoForShell script.

This inclusion will enable all the features of ColorEchoForShell within your script.

Usage

Use the echo.StyleColor syntax to print colorful text. In ksh/sh, omit the . dot symbol. You can combine up to two styles; the order doesn't matter.

Examples

Supported Shells

Supported Styles

Supported Colors

Additional Features

Community Contribution

We welcome contributions, bug reports, and suggestions. Feel free to open an issue or submit a pull request.

Screenshots

Screenshot

Demo

Demo

License

GPL-2.0 (GNU GENERAL PUBLIC LICENSE Version 2)

Author

Peter Dave Hello, @Twitter, @GitHub, @GitLab