Skip to content

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

Open

Description

@GeorgeVivanov

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.

Activity

  1. faedy2 commented on Dec 26, 2020

    @faedy2

    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 😃

  2. Sayan-Manna commented on Nov 4, 2021

    @Sayan-Manna

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions