Skip to content

kolonuk/colorize.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

colorize.sh

https://colorize.sh

https://www.github.com/kolonuk/colorize.sh

Easily add colours to bash scripts

In bash:

source <(curl -s https://raw.githubusercontent.com/kolonuk/colorize.sh/main/colorize.sh)

echo -e "${RED}red text${END}"

POSIX compliant:

. <(curl -s https://raw.githubusercontent.com/kolonuk/colorize.sh/main/colorize.sh)

echo -e "${RED}red text${END}"

If echo -e doesn't work as-is (reported on some Macs), try printf:

echo -e $(printf "${RED}red text${END}")

About

Easily add colours to bash scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages