Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _update_alternatives: add missing options in completion
- X-seq: zsh-workers 29783
- From: Ole Jørgen Brønner <olejorgenb@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: _update_alternatives: add missing options in completion
- Date: Sun, 18 Sep 2011 02:18:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s1024; t=1316305112; bh=ZH6rhI8/eIVTsBRg4wjU4N6GuKr0JqynlIJ/BlkhOjY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:To:Subject:Date:MIME-Version:Content-Transfer-Encoding:From:Message-ID:User-Agent; b=tmhpX8E2w5HHPnjSYVLxtH2o11JapR/jqHkfCaxZA33k00iWEIPZZ2BveulMJZsdeO+2BvIS1X4J/BT1PJHD/VdA44YQEYBMtX0lCcXg2k9J7gtRalb3XeYBPn0nxoh+eb8F+Sg+TPKMAEy4KMO02m0QFCR7+RNx0KMFy0/UAg4=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
(Against 1c2ff6852911c47b1386d72e781b465f140e77eb)
Even though the version in Debian stable doesn't list all these in the --help message they are supported. (see man page)
Hopefully I didn't make any mistakes. First time I've messed with completion code.
---
diff --git a/Completion/Debian/Command/_update-alternatives b/Completion/Debian/Command/_update-al
index dd1d4fc..47cda1a 100644
--- a/Completion/Debian/Command/_update-alternatives
+++ b/Completion/Debian/Command/_update-alternatives
@@ -16,11 +16,21 @@ _arguments -C \
'--version' \
'--altdir:altdir:_files -/' \
'--admindir:admindir:_files -/' \
+ '--log:log file:_files -/' \
+ '--force' \
+ '--skip-auto' \
'--install:*::alt:= ->install' \
'--remove:*::alt:= ->remove' \
+ '--remove-all:name:_files -W $alterdir' \
'--auto:name:_files -W $alterdir' \
'--display:name:_files -W $alterdir' \
- '--config:name:_files -W $alterdir' && return
+ '--query:name:_files -W $alterdir' \
+ '--list:name:_files -W $alterdir' \
+ '--get-selections' \
+ '--set-selections' \
+ '--config:name:_files -W $alterdir' \
+ '--set:name:_files -W $alterdir:path:_files -/' \
+ '--all' && return
while true; do
case "$state" in
--
Ole Jørgen Brønner
Messages sorted by:
Reverse Date,
Date,
Thread,
Author