about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-03 23:37:15 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-03 23:37:15 +0000
commitb7dc013ada073e23387cb34cc00834cd414c9441 (patch)
treeb27e5e38dc7a8e45fe155ebfec69e0b23ed9bb15
parent30a63e829cc869a2581ab8c4a5a5fb40b00c7b25 (diff)
downloadzsh-b7dc013ada073e23387cb34cc00834cd414c9441.tar.gz
zsh-b7dc013ada073e23387cb34cc00834cd414c9441.tar.xz
zsh-b7dc013ada073e23387cb34cc00834cd414c9441.zip
Initial revision
-rw-r--r--Completion/Debian/_dpkg42
-rw-r--r--Completion/Debian/_dpkg-source27
2 files changed, 69 insertions, 0 deletions
diff --git a/Completion/Debian/_dpkg b/Completion/Debian/_dpkg
new file mode 100644
index 000000000..d2ba448b3
--- /dev/null
+++ b/Completion/Debian/_dpkg
@@ -0,0 +1,42 @@
+#compdef dpkg
+
+_arguments -s '(--install)-i[install packages]:Debian package:_files -g \*.deb' \
+           '--unpack[unpack package]:Debian package:_files -g \*.deb' \
+           '(--record-avail)-A[record available]:package file:_files' \
+           '--configure:package:_deb_packages installed' \
+           '(--remove)-r[remove package]:package:_deb_packages installed' \
+           '(--purge)-P[purge package]:package:_deb_packages installed' \
+           '--get-selections[get selections]:pattern:' \
+           '--set-selections[set selections]' \
+           '--update-avail[update available]:package file:_files' \
+           '--merge-avail[merge available]:package file:_files' \
+           '--clear-avail[clear available]' \
+           '--forget-old-avail[forget uninstalled unavailable]' \
+           '(--status)-s[display package status]:packages:_deb_packages avail' \
+           '(--print-avail)-p[display available details]:packages:_deb_packages avail' \
+           '(--listfiles)-L[list owned files]:packages:_deb_packages installed' \
+           '(--list)-l[list packages]:packages:_deb_packages avail' \
+           '(--search)-S[search for file owner]:pattern:' \
+           '(--audit)-C[check for broken pkgs]' \
+           '--abort-after[abort after errors]:number of errors:' \
+           '--print-architecture[print target architecture]' \
+           '--print-gnu-build-architecture[print GNU version of target architecture]' \
+           '--print-installation-architecture[print host architecture]' \
+           '--compare-versions[compare version numbers]:expression:' \
+           '--help[show help]' \
+           '--version[show version]' \
+           '--licence[show licensing]' \
+           '--admindir=[data directory]:directory:_files -/' \
+           '--root=[alternative root]:root:_files -/' \
+           '--instdir=[change inst root but not data dir]:_files -/' \
+           '(--selected-only)-O[skip unselected packages]' \
+           '(--skip-same-version)-E[skip packages with same version as installed]' \
+           '(--refuse-downgrade)-G[skip packages with earlier version than installed]' \
+           '(--auto-deconfigure)-B[install can break other packages]' \
+           '--largemem[optimize for >4Mb RAM]' \
+           '--smallmem[optimize for <4Mb RAM]' \
+           '--no-act[show potential actions but do not follow through]' \
+           '-D+[debug options]:debug options:(h 1 2 3)' \
+           '--debug=[debug options]:debug options:(help 1 2 3)' \
+           '--ignore-depends=[ignore depends involving package]:package:_deb_packages avail' \
+           --{force,refuse,no-force}'--[forcing options]:what:(auto-select downgrade configure-any hold bad-path not-root overwrite overwrite-diverted depends-version depends confnew confold confdef confmiss conflicts architecture overwrite-dir remove-reinstreq remove-essential)'
diff --git a/Completion/Debian/_dpkg-source b/Completion/Debian/_dpkg-source
new file mode 100644
index 000000000..7ae6e6ea4
--- /dev/null
+++ b/Completion/Debian/_dpkg-source
@@ -0,0 +1,27 @@
+#compdef dpkg-source
+
+_arguments '-x[specify source file]:Debian source file:_files -g \*.dsc' \
+           '-b[specify source directory]:Debian source directory:_files -/' \
+           '-c-[control file]:control file:_files' \
+           '-l-[changelog file]:changelog file:_files' \
+           '-F-[changelog format]:changelog format:' \
+           '-V-[set substitutions variable]:expression:' \
+           '-T-[alternate variable file]:varlistfile:' \
+           '-D-[override dsc field]:expression:' \
+           '-U-[remove a field]:field:' \
+           '-i-[ignore files in diff]:filter:' \
+           '-sa[autoselect orig source]' \
+           '-sk[use packaged orig source - unpack and keep]' \
+           '-sp[use packaged orig source - unpack and remove]' \
+           '-su[use unpackaged orig source - unpack and keep]' \
+           '-sr[use unpackaged orig source - unpack and remove]' \
+           '-ss[trust packed and unpacked source are the same]' \
+           '-sn[no diff, do main tarfile only]' \
+           '-sA[autoselect orig source with overwrite]' \
+           '-sK[use packaged orig source - unpack and keep with overwrite]' \
+           '-sP[use packaged orig source - unpack and remove with overwrite]' \
+           '-sU[use unpackaged orig source - unpack and keep with overwrite]' \
+           '-sR[use unpackaged orig source - unpack and remove with overwrite]' \
+           '-sp[leave original source packed in cwd]' \
+           '-su[unpack original source tree too]' \
+           '-h[help]'