-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Setup bash & zsh autocomplete as part of brew install #264
Comments
Hi @bfarayev, Yeah, it'd be nice to have that. Contributions would be welcome. 🙂 We'd probably have to adapt our Goreleaser setup to also include these completion scripts on the Also, we need to make sure that it won't break stuff for users that try install an older version (without the completion scripts in the tarball). |
Some additional instructions on how to do it was added by @zx8 here: #382 (comment) Contributions with this are welcome! |
hey @bfarayev! i opened a PR for this, but im not sure how to go about testing it. would love to hear a little about how you tested. |
hey @notnmeyer! I guess the best way to test is to remove task from your system (Eg: on Mac you'd do |
ah sorry for the late answer. glad that you figured it out. I think the best ways to test the changes to the tap (Eg the PR you're doing to go-tasks's main homebrew-tap in this PR) is to fork that repo, make your own tap and then in your local machine, remove everything related to task, "brew tap" your forked tap which will include the autocompletion scripts change and see what you get when you say something like this:
or directly use
(something along these lines will work). Check this out as well to see how it works: https://docs.brew.sh/Taps Hope it helps |
I also found some notes on how to update the formula in the project docs: https://taskfile.dev/#/releasing_task?id=homebrew |
Implemented as part of #592. We should have completions when installing via Brew starting in the next release. |
Now that we have bash & zsh autocomplete scripts in this repo, we can install them as part of installation with homebrew.
I've noticed that we have this formula already: https://github.com/go-task/homebrew-tap/blob/master/Formula/go-task.rb
Adding 2 lines to the formula, will do that for us:
I was just testing this on my machine today. Happy to raise a PR for that if it's fine.
Thanks
The text was updated successfully, but these errors were encountered: