* Re: Bug#454994: zsh: should complete group names for 'members'
[not found] <20071208160356.25929.94784.reportbug@soyuz.ipv6.spacelabs.nl>
@ 2007-12-08 16:35 ` Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-12-08 16:35 UTC (permalink / raw)
To: zsh-workers; +Cc: marcelm, 454994
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'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-08 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20071208160356.25929.94784.reportbug@soyuz.ipv6.spacelabs.nl>
2007-12-08 16:35 ` Bug#454994: zsh: should complete group names for 'members' Clint Adams
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).