stark / Color-Scripts

User contributed color scripts

Home Page:https://git.io/color.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make all scripts execute randomly in fish shell?

GeorgeVivanov opened this issue · comments

I'm using fish shell as a default shell, but i couldn't figure out how to link all executable files so that every time i open my terminal some of than to execute randomly.

set -l splash (find ~/.config/fish/scripts/Color-Scripts/ -type f | shuf -n 1) && $splash
This is what I did
The command will execute a random script from the Color-Scripts directory
Just put this command in your fish config file, and it will run a random script in each new terminal 😃

set -l splash (find ~/.config/fish/scripts/Color-Scripts/ -type f | shuf -n 1) && $splash
This is what I did
The command will execute a random script from the Color-Scripts directory
Just put this command in your fish config file, and it will run a random script in each new terminal 😃

how to do it on zsh?