A fish utility for aggregating subcommands with autocompletions.
I wrote this because I kept forgetting what I was supposed to be doing. I wanted a convenient way to make helper scripts without needing to remember all of their names or uses.
I haven't tried setting this up for permanent use, but for now, you can source ./register.fish
in your fish shell.
Note: Currently, only fish scripts are supported.
- Pick a name for your custom command.
- Copy the template from
./forgors/template.fish
to./forgors/yourcommand.fish
and uncomment everything. - Change the command description on line 2. This will be displayed during fish autocompletions.
- Put the commands you want to run inside of the
forgor_$subcommand
function. - In a fish shell, run
source ./forgor_autocomplete.fish
.
``
Don't forget to source ./register.fish. This makes the forgor funciton available.
- In a fish shell, type
forgor
and press tab. You should see a list of commands you've created. - Run
forgor yourcommand
.
I forgor what comes next 💀