b78b368913b542ed49f08011d64743edfcc330f6
colors.sh
Write colored text to the terminal easily.
Installation
Download colors.sh and source it in your script or copy/paste the functions and variables into your script.
curl -O https://raw.githubusercontent.com/OzzyCzech/colors.sh/master/colors.sh
Usage
source colors.sh
# with colors.sh sourced, you can use the constants
echo "This is ${RED}red text${NC}"
Contants
GRAY- for grayLIGHT_GRAY- for light_grayYELLOW- for yellowLIGHT_YELLOW- for light yellowGREEN- for greenLIGHT_GREEN- for light greenRED- for redLIGHT_RED- for light redBLUE- for blueLIGHT_BLUE- for light blueMAGENTA- for magentaLIGHT_MAGENTA- for light magentaCYAN- for cyanWHITE- for whiteBLACK- for blackBOLD- for boldUNDERLINE- for underlineBLINK- for blinkNC- for no colors (reset)
License
MIT
Languages
Shell
100%
