How does command autocompletion work? #386
-
I'm not sure what kind of isssue to make, so I'm doing feature request. 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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's what discussions are for. 🙂 I've converted your issue to a discussion.
|
Beta Was this translation helpful? Give feedback.
-
I see, thanks! |
Beta Was this translation helpful? Give feedback.
That's what discussions are for. 🙂 I've converted your issue to a discussion.
pacman
's own ArchLinux package includes a Zsh completion function for itself. This file is installed as/usr/share/zsh/site-functions/_pacman
when thepacman
package is installed.