ColorEchoForShell

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

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者PeterDaveHello/ColorEchoForShell
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證GNU General Public License v2.0
所有者活动
創建於2015-06-08 21:50:48
推送於2024-04-29 14:52:12
最后一次提交2024-04-29 22:52:12
發布數13
最新版本名稱v0.0.13 (發布於 )
第一版名稱v0.0.1 (發布於 )
用户参与
星數117
關注者數2
派生數18
提交數154
已啟用問題?
問題數6
打開的問題數3
拉請求數4
打開的拉請求數1
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?