From: Jesse W <jessw@netwood.net>
To: zsh-workers@sunsite.dk
Subject: small dpkg completion update patch
Date: Wed, 4 May 2005 17:20:42 -0700 [thread overview]
Message-ID: <841710F4-BCFB-11D9-8F80-000A957CB0EE@netwood.net> (raw)
I've written a tiny patch for _dpkg, the completion function for dpkg,
and dpkg-deb. It adds the --show option, which was added to dpkg-deb
(but not dpkg) in version 10.1. I'm intending to hack up completion
for dpkg-query evetually, so this is also sort of a training for me in
the process of creating and sending in patches for zsh. If I've done
anything wrong, please let me know. The patch is included below.
Jesse Weinstein
*** /Users/jesse/_dpkg.old Wed May 4 17:00:21 2005
--- /Users/jesse/_dpkg Wed May 4 17:07:56 2005
***************
*** 2,9 ****
--- 2,13 ----
local _dpkg_deb_actions _dpkg_common_actions _dpkg_actions
_dpkg_options
local _dpkg_options_recursive _dpkg_actions_install
_dpkg_actions_record_avail
+ local _dpkg_deb_only_actions
local curcontext="$curcontext" context state line expl ret
typeset -A opt_args
+ _dpkg_deb_only_actions=(
+ '(--show -W)'{--show,-W}'[show package info]:Debian
package:_files -g \*.u\#deb'
+ )
_dpkg_deb_actions=(
'(--build -b)'{--build,-b}'[build archive]:directory:_files -/'
***************
*** 83,89 ****
dpkg-deb)
_arguments "$_dpkg_deb_actions[@]" \
! "$_dpkg_common_actions[@]" && return 0
;;
--- 87,94 ----
dpkg-deb)
_arguments "$_dpkg_deb_actions[@]" \
! "$_dpkg_common_actions[@]" \
! "$_dpkg_deb_only_actions[@]" && return 0
;;
next reply other threads:[~2005-05-05 0:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 0:20 Jesse W [this message]
2005-05-05 22:27 ` Clint Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=841710F4-BCFB-11D9-8F80-000A957CB0EE@netwood.net \
--to=jessw@netwood.net \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).