Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make all scripts execute randomly in fish shell? #21

Open
GeorgeVivanov opened this issue Dec 9, 2020 · 2 comments
Open

How to make all scripts execute randomly in fish shell? #21

GeorgeVivanov opened this issue Dec 9, 2020 · 2 comments

Comments

@GeorgeVivanov
Copy link

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.

@faedy2
Copy link

faedy2 commented Dec 26, 2020

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 😃

@Sayan-Manna
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants