summaryrefslogtreecommitdiff
path: root/zsh_completion.in
diff options
context:
space:
mode:
Diffstat (limited to 'zsh_completion.in')
-rw-r--r--zsh_completion.in39
1 files changed, 2 insertions, 37 deletions
diff --git a/zsh_completion.in b/zsh_completion.in
index 727112a..ec07b3b 100644
--- a/zsh_completion.in
+++ b/zsh_completion.in
@@ -1,45 +1,15 @@
-#compdef archbuild archco archrelease archrm 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-i686-build=archbuild extra-x86_64-build=archbuild testing-i686-build=archbuild testing-x86_64-build=archbuild staging-i686-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-i686-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-i686-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco
-
-m4_include(lib/valid-tags.sh)
+#compdef finddeps archroot
_archbuild_args=(
'-c[Recreate the chroot before building]'
'-r[Create chroots in this directory]:base_dir:_files -/'
)
-_archco_args=(
- '*:packages:_devtools_completions_all_packages'
-)
-
-_archrelease_args=(
- "*:arch:($_tags[*])"
-)
-
-_archrm_args=(
- '1:path:_files -/'
-)
-
-_commitpkg_args=(
- "-a[Release to a specific architecture only]:arch:($_arch[*])"
- '-l[Set bandwidth limit]:limit'
- '1:commit_msg'
-)
-
_finddeps_args=(
'1:packages:_devtools_completions_all_packages'
)
-_makechrootpkg_args=(
- '-I[Install a package into the working copy]:target:_files -g "*.pkg.tar.*(.)"'
- '-c[Clean the chroot before building]'
- '-d[Add the package to a local db at /repo after building]'
- '-h[Display usage]'
- '-l[The directory to use as the working copy]:copy_dir:_files -/'
- '-r[The chroot dir to use]:chroot_dir:_files -/'
- '-u[Update the working copy of the chroot before building]'
-)
-
-_mkarchroot_args=(
+_archroot_args=(
'-r[Run a program within the context of the chroot]:app'
'-u[Update the chroot via pacman]'
'-f[Force overwrite of files in the working-dir]'
@@ -50,11 +20,6 @@ _mkarchroot_args=(
'-h[Display usage]'
)
-_rebuildpkgs_args=(
- '1:chroot_dir:_files -/'
- '*:packages:_devtools_completions_all_packages'
-)
-
_devtools_completions_all_packages() {
typeset -U packages
packages=($(_call_program packages pacman -Sql))