Skip to content

u-clarkdeveloper/color_echo_sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color_echo_sh

Description

Shell script to source if you would like colored echo commands

How to use

Add the following line to the top of your shell script to pull in the latest version.

source <(curl -s https://raw.githubusercontent.com/u-clarkdeveloper/color_echo_sh/main/color_echo.sh)

Commands

example colors

checkmark and xmark have also been added, so you can do things like the following

if [[ -n ${!some_var} ]]; then
    info "Checking Local Enironmental Variable: $some_var... $(checkmark)"

else
    info "Checking Local Enironmental Variable: $some_var... $(xmark)"
fi

this would produce output similar to

check example

How to get the list of colors

for (( i = 30; i < 38; i++ )); do echo -e "\033[0;"$i"m Normal: (0;$i); \033[1;"$i"m Light: (1;$i)"; done

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages