https://github.com/lazypwny751/colorsh
a simple color library written in bash
https://github.com/lazypwny751/colorsh
bash bash-colors color library module script shell variables
Last synced: about 2 months ago
JSON representation
a simple color library written in bash
- Host: GitHub
- URL: https://github.com/lazypwny751/colorsh
- Owner: lazypwny751
- License: gpl-3.0
- Created: 2021-08-17T22:31:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-20T17:00:19.000Z (almost 5 years ago)
- Last Synced: 2025-05-30T08:53:21.374Z (about 1 year ago)
- Topics: bash, bash-colors, color, library, module, script, shell, variables
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# colorsh 1.0.0
a simple color library written in bash
## Installation
### way 1:
```bash
git clone https://github.com/lazypwny751/colorsh.git && cd colorsh && sudo make install
```
### way 2:
install the [themis](https://github.com/ByCh4n-Group/themis) projact then just add the [standart themis library repository](https://github.com/ByCh4n-Group/regular-modules) and just type **sudo themis install colorsh**
### way 3:
also you can use the [binary packages](https://github.com/lazypwny751/colorsh/releases)
## 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
```bash
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](https://choosealicense.com/licenses/gpl-3.0/)