-
-
Notifications
You must be signed in to change notification settings - Fork 663
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
Zsh completion support #347
Comments
Hi @moskomule. When I implemented the bash support I did have other shells in mind, so it wouldn't be implementing from scratch. However, implementing it will probably take a few days to whoever wants to try. I am happy to offer advice to anyone giving it a shot. |
Hi @omry, Is this still relevant? Im willing to give this a shot. |
Yup, still relevant. |
Just leaving a comment here since there is no updates on this and it was a major pain point for me before switching over to hydra completely. One can use bash completions with zsh (Source). So the idea is to just use the existing bash completion which is already in place. However, the current completions script uses the
Replace with
Afterwards, put this in your
after Then one can just do
and it should work! Hope this helps someone! @omry, are you willing to upstream these changes if I create a PR? This is also what, e.g., Apache Airflow is recommending for zsh users . |
I am certainly open to this change, but:
|
this is done. |
🚀 Feature Request
Zsh completion support as well as bash.
Motivation
I tried hydra's bash completion and I was amazing. However, I usually use zsh, so I want Zsh completion. I found related PRs such as #263, but there is no progress so far.
Pitch
As far as I tried and googled, zsh requires a completion function to be saved as a file somewhere and loaded again. I think it makes installation a bit difficult compared to bash's
eval $(python file.py -sc install=bash)
. I want to know better solutions if you know.The text was updated successfully, but these errors were encountered: