fix: zsh autocompletions - #2172
Closed
mahyarmirrashed wants to merge 1 commit into
Closed
Conversation
Actually auto-complete.
Author
|
Admittedly, this is just a patch over the old problem. There probably needs to be actual source code changes to make it work properly. e.g. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Actually auto-complete.
For some reason, the auto-completion wasn't working for me. Running
<prog> -- --generate-shell-completionjust ran the command, and did not provide the correct results. The reason that was happening (if I had to guess) is because--is being treated as an end of flags. As such, the literal string--generate-shell-completionwas being passed to the underlying program.What type of PR is this?
What this PR does / why we need it:
Current completions do not work for ZSH. I spent 3 hours trying to figure out what it was.
Which issue(s) this PR fixes:
Partially fixes #2173
Release Notes