Skip to content

Instantly share code, notes, and snippets.

@jstine35
Last active May 15, 2024 16:12
Show Gist options
  • Save jstine35/7b43e1e63563ea30e1325e143ce512ea to your computer and use it in GitHub Desktop.
Save jstine35/7b43e1e63563ea30e1325e143ce512ea to your computer and use it in GitHub Desktop.
Quick snip for injecting ANSI colors into bash scripts
# Quick snip for injecting ANSI colors into bash scripts. Best used inside cat heredoc.
#
# Usage examples:
# cat << BOOKENDS
# ${blue}${bold}${underlined}Getting Started Guide:${nocolor}
# BOOKENDS
nocolor=''
black=''
red=''
green=''
yellow=''
blue=''
purple=''
teal=''
white=''
bold=''
darkened=''
italics=''
underlined=''
# Useful Unicode Template:
# ❎✅ ✖ ✘ ✨ ❌ ❑ ➤ ▢
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment