Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#454994: zsh: should complete group names for 'members'
- X-seq: zsh-workers 24187
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#454994: zsh: should complete group names for 'members'
- Date: Sat, 8 Dec 2007 11:35:00 -0500
- Cc: marcelm@xxxxxxxx, 454994@xxxxxxxxxxxxxxx
- In-reply-to: <20071208160356.25929.94784.reportbug@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, marcelm@xxxxxxxx, 454994@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20071208160356.25929.94784.reportbug@xxxxxxxxxxxxxxxxxxxxxxx>
On Sat, Dec 08, 2007 at 05:03:56PM +0100, Marcel Moreaux wrote:
> zsh should complete group names for the (optional) 'members' command,
> just like it does for groupdel.
>
> This should be trivially accomplished by adding 'members' to
> /usr/share/zsh/4.3.2/functions/Completion/Unix/_groups .
Index: Completion/Debian/Command/_members
===================================================================
RCS file: Completion/Debian/Command/_members
diff -N Completion/Debian/Command/_members
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_members 8 Dec 2007 16:34:21 -0000
@@ -0,0 +1,9 @@
+#compdef members
+
+_arguments \
+ '(-a --all)'{-a,--all}'[show all group members on one line]' \
+ '(-p --primary)'{-p,--primary}'[show only primary group members]' \
+ '(-s --secondary)'{-s,--secondary}'[show only secondary group members]' \
+ '(-t --two-lines)'{-t,--two-lines}'[show only primary/secondary across two lines]' \
+ '(-h --help)'{-h,--help}'[show help]' \
+ ':group:_groups'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author