Skip to content

Instantly share code, notes, and snippets.

View dilijev's full-sized avatar

Doug Ilijev dilijev

View GitHub Profile
@dilijev
dilijev / color_test.sh
Created June 22, 2017 18:53 — forked from esundahl/color_test.sh
Bash Color Test
function color_test {
# Daniel Crisman's ANSI color chart script from
# The Bash Prompt HOWTO: 6.1. Colours
# http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
#
# This function echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background