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

Tab completion for customcli (alias for tusk) #82

Open
ghost opened this issue Oct 14, 2020 · 2 comments
Open

Tab completion for customcli (alias for tusk) #82

ghost opened this issue Oct 14, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 14, 2020

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
Copy link
Owner

rliebz commented Oct 14, 2020

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
Copy link
Author

ghost commented Oct 15, 2020

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'

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

1 participant