rliebz / tusk

The modern task runner
https://rliebz.github.io/tusk/
MIT License
236 stars 21 forks source link

Tab completion for customcli (alias for tusk) #82

Open ghost opened 3 years ago

ghost commented 3 years ago

I have installed tab completion using tusk -f /customcli/Tusk.yml --install-completion, so the tasks are completed when I type tusk -f /customcli/Tusk.yml

But I have an alias voor my CLI.

alias customcli='tusk -f /customcli/Tusk.yml'

How can I enable tab completion for my customcli, so my tasks will be available after customcli task?

rliebz commented 3 years ago

That's a good question. The way I have zsh set up for me this was happening automatically, but I didn't test with other configurations or other shells.

This isn't something tusk solves for out of the box, but you may be able to find something specific to your shell. For example, here are some options for how you can get completions for aliases in bash. Feel free to follow-up here if none of those options end up working the way you want.

ghost commented 3 years ago

Thanks for your reply! This solutions works for simple aliases like alias custum-cli='htop', but haven't manged it to work for alias customcli='tusk -f /customcli/Tusk.yml'