Color

May 26, 2017 ยท View on GitHub

A small zsh script for styling strings.

Installation

zulu install color

Or rename color.zsh to color and place it somewhere in your $PATH.

Usage

# Simple colors
color black "This string will be black"
color red "This string will be red"

# Using short names for colors
color g "This string will be green"
color y "This string will be yellow"

# Using numbers for colors
color 28 "This string will be dark green"
color 250 "This string will be light grey"

# Using styles
color black underline "This string will be black and underlined"
color r b "This string will be red and bold"

Available colors

Available Styles

  • bold (b)
  • italic (i)
  • underline (u)
  • inverse (in)
  • strikethrough (s)