diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2019-11-28 21:50:15 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-11-30 13:25:06 +0100 |
commit | e0f82d394717efb28537f0a366b4a5b3515354b6 (patch) | |
tree | ea854587328e19f54b6d80a5b47dfabed7833bc6 | |
parent | 74313db9ee243b30b48d355f88b3c8971b90161f (diff) | |
download | devtools-e0f82d394717efb28537f0a366b4a5b3515354b6.tar.gz devtools-e0f82d394717efb28537f0a366b4a5b3515354b6.tar.xz |
completion: add makerepropkg zsh completion
-rw-r--r-- | zsh_completion.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zsh_completion.in b/zsh_completion.in index 1c7862e..a1225aa 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,4 +1,4 @@ -#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg sogrep offload-build +#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg sogrep offload-build makerepropkg # License: Unspecified m4_include(lib/valid-tags.sh) @@ -93,6 +93,13 @@ _offload_build_args=( '(-h --help)'{-h,--help}'[Display usage]' ) +_makerepropkg_args=( + '-c[Set pacman cache]:pacman_cache:_files -/' + '-M[Location of a makepkg config file]:makepkg_config:_files -g "*.conf(.)"' + '-h[Display usage]' + '1:working_dir:_files -g "*.pkg.tar.*(.)"' +) + _devtools_completions_all_packages() { typeset -U packages packages=($(_call_program packages pacman -Sql)) |