ColorEchoForShell

Make ? 's ? to be ? easily ✨ Support ✅ sh, bash, zsh, ksh & ?

Github stars Tracking Chart

ColorEchoForShell

Build Status
License badge

Make echo colorful with easier method. In bash, sh, fish, ksh and zsh. Which can help you print debug, warning, error message in shell scripts with meaningful colors, and make the output more readable.

Please note that certain colors will really depend on the environment, my demo is under a terminal called Terminator, you can simply install it via apt, yum, pkg or other package manager. Actually, all the colors display depend on the environment setting, but I just name/define name by the most common cases I know by far.

Installation

  • Download the script, choice the one for your shell by its extension in the filename.
  • Add a line to include the script in your shell rc or run it directly:

. ./ColorEcho.bash

Usage

  • echo.StyleColor (if you are using ksh/sh, there is no . dot symbol)

Examples

  • echo.Cyan
  • echo.ULCyan
  • echo.LightCyan
  • echo.BoldCyan
  • echo.BoldULCyan

Supported shells

Supported styles

  • Bold as Bold
  • Light as Light
  • Underline as UL

Supported colors

Notes

  • If you have lolcat, you can also try echo.Rainbow.

Screenshot

Screenshot

Demo

Demo

License

GPL-2.0 (GNU GENERAL PUBLIC LICENSE Version 2)

Author

Peter Dave Hello, @Twitter, @GitHub

Main metrics

Overview
Name With OwnerPeterDaveHello/ColorEchoForShell
Primary LanguageShell
Program languageShell (Language Count: 1)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2015-06-08 21:50:48
Pushed At2024-04-29 14:52:12
Last Commit At2024-04-29 22:52:12
Release Count13
Last Release Namev0.0.13 (Posted on )
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count117
Watchers Count2
Fork Count18
Commits Count154
Has Issues Enabled
Issues Count6
Issue Open Count3
Pull Requests Count4
Pull Requests Open Count1
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private