Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make 🐚(shell) 's 💬 (`echo`) to be 🎨 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟 One simple command for vibrant text output! 💫

License

NotificationsYou must be signed in to change notification settings

PeterDaveHello/ColorEchoForShell

Repository files navigation

Build Status

Make echo colorful with easier method. Inbash,sh,fish,ksh andzsh.

Please note thatcertain colors will really depend on the environment, my demo is under a terminal calledTerminator, 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.

MENU

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 usingksh/sh, there is no. dot symbol)

Examples

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

Supported shells

Supported styles

  • Bold asBold
  • Light asLight
  • Underline asUL

Supported colors

Notes

  • If you havelolcat, you can also tryecho.Rainbow.
  • If you are using Mac OS, please upgrade your bash first, you can useHomebrew orMacPorts, the origin bash is too old.
  • ksh/sh shell's color echo may rely on external/bin/echo, it may not work properly with color under BSD and Mac OS.

Screenshot

Screenshot

Demo

Demo

License

GPL-2.0 (GNU GENERAL PUBLIC LICENSE Version 2)

Author

Peter Dave Hello,@Twitter,@GitHub

About

Make 🐚(shell) 's 💬 (`echo`) to be 🎨 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟 One simple command for vibrant text output! 💫

Topics

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp