Skip to content

lazypwny751/colorsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

colorsh 1.0.0

a simple color library written in bash

Installation

way 1:

git clone https://github.com/lazypwny751/colorsh.git && cd colorsh && sudo make install

way 2:

install the themis projact then just add the standart themis library repository and just type sudo themis install colorsh

way 3:

also you can use the binary packages

Usage

color variables and values you can use in this library

${reset} # Reset Colors
${black} # Black
${red} # Red
${green} # Green
${yellow} # Yellow
${blue} # Blue
${purple} # Purple
${cyan} # Cyan
${white} # White
${Bblack} # Bold Black
${Bred} # Bold Red
${Bgreen} # Bold Green
${Byellow} # Bold Yellow
${Bblue} # Bold Blue
${Bpurple} # Bold Purple
${Bcyan} # Bold Cyan
${Bwhite} # Bold White
${Ublack} # UnderLined Black
${Ured} # UnderLined Red
${Ugreen} # UnderLined Green
${Uyellow} # UnderLined Yellow
${Ublue} # UnderLined Blue
${Upurple} # UnderLined Purpe
${Ucyan} # UnderLined Cyan
${Uwhite} # UnderLined White
${BGblack} # BackGround Black
${BGred} # BackGround Red
${BGgreen} # BackGround Green
${BGyellow} # BackGround Yellow
${BGblue} # BackGround Blue
${BGpurple} # BackGround Purple
${BGcyan} # BackGround Cyan
${BGwhite} # BackGround White
${Iblack} # Intensified Black
${Ired} # Intensified Red
${Igreen} # Intensified Green
${Iyellow} # Intensified Yellow
${Iblue} # Intensified Blue
${Ipurple} # Intensified Purple
${Icyan} # Intensified Cyan
${Iwhite} # Intensified White
${BIblack} # BoldIntensified Black
${BIred} # BoldIntensified Red
${BIgreen} # BoldIntensified Green
${BIyellow} # BoldIntensified Yellow
${BIblue} # BoldIntensified Blue
${BIpurple} # BoldIntensified Purple
${BIcyan} # BoldIntensified Cyan
${BIwhite} # BoldIntensified White
${BGIblack} # BoldBacgroundIntensified Black
${BGIred} # BoldBacgroundIntensified Red
${BGIgreen} # BoldBacgroundIntensified Green
${BGIyellow} # BoldBacgroundIntensified Yellow
${BGIblue} # BoldBacgroundIntensified Blue
${BGIpurple} # BoldBacgroundIntensified Purple
${BGIcyan} # BoldBacgroundIntensified Cyan
${BGIwhite} # BoldBacgroundIntensified White

lolbash is a function that offers random colors similar to lolcat

Usage: echo -e "$(randomcolor) hello${reset}"

lolbash is a function that offers random colors similar to lolcat for every character(s)

Usage: echo -e "$(lolbash) hello${reset}"

example

source /usr/local/lib/themis/colorsh.sh

echo -e "${red} Hello ${blue} World ${reset}! $(randomcolor) Test${reset}"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3