Skip to content
Discussion options

You must be logged in to vote

I'm not sure what kind of isssue to make, so I'm doing feature request.

That's what discussions are for. 🙂 I've converted your issue to a discussion.

How does command autocompletion work? I have a slightly complex version of pacman I made, and I'm wondering how I can have zsh-autocomplete autocomplete my flags or packages.
How does it know what flags are applicable for this command?
How do I have my command have my command's parameters autocomplete with Arch Linux packages?

pacman's own ArchLinux package includes a Zsh completion function for itself. This file is installed as /usr/share/zsh/site-functions/_pacman when the pacman package is installed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by marlonrichert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #385 on December 16, 2021 09:11.