right now the only completion for zsh for makepkg comes from pkgtool,
and the 2 options that come from that are --chown and --linkadd which
aren't options for makepkg anyway. This should add completion for all
the flags for makepkg
Signed-off-by: Daniel Wallace
---
contrib/zsh_completion.in | 175 ++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 166 insertions(+), 9 deletions(-)
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index 73ce42f..4bafafa 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -1,4 +1,4 @@
-#compdef pacman pacman.static=pacman pacman-key
+#compdef pacman pacman.static=pacman pacman-key makepkg
# copy this file to /usr/share/zsh/site-functions/_pacman
@@ -239,7 +239,7 @@ _pacman_completions_all_packages() {
typeset -U packages
_wanted packages expl "packages" compadd - "${(@)packages}"
- repositories=(${(o)${${${(M)${(f)"$(<@sysconfdir@/pacman.conf)"}:#\[*}/\[/}/\]/}:#options})
+ repositories=(${(o)${${${(M)${(f)"$(