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

fix zsh autocomplete #906

Merged
merged 1 commit into from Oct 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions autocomplete/zsh_autocomplete
@@ -1,3 +1,5 @@
#compdef $PROG
Copy link
Member

Choose a reason for hiding this comment

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

Hey @gnowxilef, can you please explain a bit how this fixes the ZSH completion?

Copy link
Contributor Author

@fawaf fawaf Oct 6, 2019

Choose a reason for hiding this comment

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

sure, on the zsh documentation page http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Initialization under the "Autoloaded files" section (20.2.2), it states that adding #compdef name will make the completion file autoloadable. the current behavior of the cli does not load anything into zsh.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks 🙏


_cli_zsh_autocomplete() {

local -a opts
Expand Down