Files
bash_utils/colors.sh
2024-03-22 07:02:10 +01:00

22 lines
418 B
Bash

#!/bin/bash
echoc() {
command echo -e "$@${NC}"
}
# colors!
# usage: ${RED}
# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
RED='\033[0;31m'
LRED='\033[1;31m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
LBLUE='\033[0;36m'
GRAY='\033[1;30m'
GREY='\033[1;30m'
NC='\033[0m' # No Color
allcolors=("RED" "LRED" "YELLOW" "GREEN" "BLUE" "LBLUE" "GRAY" "NC")