Skip to content

knittl/format.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

205c38d · Jan 4, 2025

History

12 Commits
Oct 16, 2024
Jan 4, 2025
Oct 16, 2024
Jan 4, 2025

Repository files navigation

format.sh: ANSI formatting made simple

A simple helper function that can be used to output formatted text with ANSI escape sequences.

Examples:

  • fmt red 'this text is red'
  • fmt red,underline 'this text is red and underlined'
  • fmt red,bg-white 'red text on white background'

Releases

No releases published

Languages