-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use compsys completion system for zsh #1569
Conversation
The `_rbenv` script will be autoloaded by zsh as long as it's found in $FPATH. It should be the package manager's responsibility to symlink or move this file into an appropriate location.
Thanks! I have pushed some changes:
To try this out, please ensure that the project's Any feedback welcome! |
I've pushed a little change.
It wasn't working for me until that. But it works great! |
I would imagine the same as well, however, what about people using the basic git checkout installation method? I suppose it could be indicated in the README that it is necessary to add project's |
That's a very good point. Users of “basic git checkout” installation method will have to tweak their zsh environment to get completions working again. This might be slightly disruptive, but I think proper autoloading is a better solution going forward. We can document this in the README and in future release notes.
That's a solid idea, but changing |
By all means. You're completely right, it might be tricky changing |
Completions in zsh are done via
compctl
.This PR update the completion file to use the 'new' completion system:
compsys
.The changeset doesn't include descriptions for commands, it just use the current logic implemented for
compctl
and usecompsys
instead.