Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#454994: zsh: should complete group names for 'members'



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