Added Fish example
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# colors.sh
|
# 🎨 colors.sh
|
||||||
|
|
||||||
Write colored text to the terminal easily.
|
Write colored text to the terminal easily.
|
||||||
|
|
||||||
_Forker from https://github.com/OzzyCzech/colors.sh_
|
🍴 _Forker from https://github.com/OzzyCzech/colors.sh_
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## 💾 Installation
|
||||||
|
|
||||||
Download `colors.sh` and source it in your script or copy/paste the functions and variables into your script.
|
Download `colors.sh` and source it in your script or copy/paste the functions and variables into your script.
|
||||||
|
|
||||||
@@ -14,15 +14,16 @@ Download `colors.sh` and source it in your script or copy/paste the functions an
|
|||||||
wget https://git.a2s.su/iiiypuk/colors.sh/raw/branch/main/colors.sh
|
wget https://git.a2s.su/iiiypuk/colors.sh/raw/branch/main/colors.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
source colors.sh
|
source colors.sh
|
||||||
|
|
||||||
# with colors.sh sourced, you can use the constants
|
# with colors.sh sourced, you can use the constants
|
||||||
echo -e "This is ${RED}red text${NC}"
|
echo -e "This is ${RED}red text${NC}" # Bash
|
||||||
|
echo -e "This is $RED\b red text$NC" # Fish
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## 📄 License
|
||||||
|
|
||||||
[MIT License](LICENSE)
|
[MIT License](LICENSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user