scripts/shell-color-scripts
Guilherme Rugai Freire 32b19214e0 fix escape sequences
2021-08-02 11:57:34 -03:00
..
colorscripts fix escape sequences 2021-08-02 11:57:34 -03:00
README initial commit 2021-05-27 09:42:19 -03:00
colorscript.sh clean up code 2021-08-02 11:48:33 -03:00
LICENSE initial commit 2021-05-27 09:42:19 -03:00
README.md initial commit 2021-05-27 09:42:19 -03:00

Shell Color Scripts

Screenshot of shell-color-scripts

Fork from Derek Taylor - https://gitlab.com/dwt1/shell-color-scripts

Installing shell-color-scripts

git clone https://github.com/GRFreire/shell-color-scripts $HOME/.local/share/shell-color-scripts

ln -s $HOME/.local/share/shell-color-scripts/colorscript.sh $HOME/.local/bin/colorscript

Make sure that $HOME/.local/bin is set in your PATH.

Update

Go to $HOME/.local/share/shell-color-scripts and update the repo.

cd $HOME/.local/share/shell-color-scripts
git pull

Usage

colorscript --help
Description: A collection of terminal color scripts.

Usage: colorscript [OPTION] [SCRIPT NAME/INDEX]
    -h, --help, help    	Print this help.
    -l, --list, list    	List all color scripts.
    -r, --random, random	Run a random color script.
    -e, --exec, exec    	Run a spesific color script by SCRIPT NAME or INDEX.

Auto run

For even more fun, add the following line to your .bashrc or .zshrc and you will run a random color script each time you open a terminal:

### RANDOM COLOR SCRIPT ###
colorscript random

Integrated terminal emulator

Probably you don't want colorscript to run in your Integrated terminal (i.g. your vscode terminal). So, if you pass an env variable INTEG_EMU (with any value) the script won't run.

Try adding this to your settings.json (VSCode):

"terminal.integrated.env.linux": {
    "INTEG_EMU": "vscode"
}