Skip to content

knittl/format.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

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