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

Improve zsh completion documentation #1169

Merged
merged 1 commit into from
Jul 19, 2020
Merged

Conversation

marckhouzam
Copy link
Collaborator

The documentation mistakenly mentions that the user could setup zsh completion by doing:

source <(myprogram completion zsh)

This has been removed. It was noticed in #1165.

Also, the documentation to the changes to zsh completion did not include the fact that the - prefix is now required to complete flag names (as is done for bash completion). This was added. It was noticed in #899 (comment)

@marckhouzam marckhouzam changed the title Improve zsh completion Improve zsh completion documentation Jul 17, 2020
@jpmcb
Copy link
Collaborator

jpmcb commented Jul 17, 2020

I wonder if it's worth mentioning that the completion system needs to be in place before this will work. For example, someone's ~/.zshrc should have:

autoload -U compinit
compinit

otherwise starting a new shell with the completion scripts in place won't work. I believe that's the issue here: #1165 (comment) . If someone's using something like ohmyzsh, this is usually taken care of for them, but I think being more verbose could help.

Otherwise, this looks good to me!

@marckhouzam
Copy link
Collaborator Author

@jpmcb good point. I'll push a tweak.

@marckhouzam
Copy link
Collaborator Author

@jpmcb Do you think this is clear enough?

Also, do you know how to source the powershell completion script? We should add this info as well, but I don't know anything about powershell.

Copy link
Collaborator

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this looks good to me!! 👍

I don't know too much about powershell, but I can boot up my windows PC and give it a look sometime soon!

@jpmcb jpmcb merged commit c6fe2d4 into spf13:master Jul 19, 2020
@marckhouzam marckhouzam deleted the fix/zshDoc branch July 20, 2020 02:11
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

Successfully merging this pull request may close these issues.

3 participants