Last active
May 15, 2024 16:12
-
-
Save jstine35/7b43e1e63563ea30e1325e143ce512ea to your computer and use it in GitHub Desktop.
Quick snip for injecting ANSI colors into bash scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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='[m' | |
black='[30m' | |
red='[31m' | |
green='[32m' | |
yellow='[33m' | |
blue='[34m' | |
purple='[35m' | |
teal='[36m' | |
white='[37m' | |
bold='[01m' | |
darkened='[02m' | |
italics='[03m' | |
underlined='[04m' | |
# Useful Unicode Template: | |
# ❎✅ ✖ ✘ ✨ ❌ ❑ ➤ ▢ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment