|
#!/bin/bash
##---------------------------------------------------------------------------##
#
# Program: set-foreground-colour-vars
# Author: Brian <genius@groupbcl.ca> :)
# Date: March 2017
#
# Sets up environment variables to allow foreground colours to be set
# easily in 'echo' commands.
#
# Notes:
# * FG_WHITE is actually a "reset to standard colours" command
# * This file is intended to be sourced in the script that uses it
#
##---------------------------------------------------------------------------##
# BUUS: This script is part of Brian's Useful Utilities Set
##---------------------------------------------------------------------------##
BOLD="$(tput bold)"
FG_WHITE="$(tput sgr0)"
FG_GRAY="$(tput setaf 0)$BOLD"
FG_GREY="$FG_GRAY"
FG_RED="$(tput setaf 1)$BOLD"
FG_GREEN="$(tput setaf 2)$BOLD"
FG_BROWN="$FG_WHITE$(tput setaf 3)"
FG_YELLOW="$(tput setaf 3)$BOLD"
FG_BLUE="$(tput setaf 4)$BOLD"
FG_MAGENTA="$(tput setaf 5)$BOLD"
FG_CYAN="$(tput setaf 6)$BOLD"
FG_BRIGHT_WHITE="$(tput setaf 7)$BOLD"
unset BOLD
|