zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: marcelm@luon.net, 454990@bugs.debian.org
Subject: Re: Bug#454990: zsh: should complete user names for 'id'
Date: Sat, 8 Dec 2007 11:46:34 -0500	[thread overview]
Message-ID: <20071208164634.GA7689@scowler.net> (raw)
In-Reply-To: <20071208155647.24989.59211.reportbug@soyuz.ipv6.spacelabs.nl>

On Sat, Dec 08, 2007 at 04:56:47PM +0100, Marcel Moreaux wrote:
> zsh should complete user names for the 'id' command, just like it does
> for passwd, userdel, etc.
> 
> This should be trivially accomplished by adding 'id' to
> /usr/share/zsh/4.3.2/functions/Completion/Unix/_users .


Index: Completion/Unix/Command/_id
===================================================================
RCS file: Completion/Unix/Command/_id
diff -N Completion/Unix/Command/_id
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_id	8 Dec 2007 16:45:06 -0000
@@ -0,0 +1,13 @@
+#compdef id
+
+_arguments \
+  '-a[no-op]' \
+  '(-Z --context)'{-Z,--context}'[print only context]' \
+  '(-g --group)'{-g,--group}'[print only EGID]' \
+  '(-G --groups)'{-G,--groups}'[print all GIDs]' \
+  '(-n --name)'{-n,--name}'[print name instead of number]' \
+  '(-r --real)'{-r,--real}'[print real ID instead of effective]' \
+  '(-u --user)'{-u,--user}'[print only EUID]' \
+  '--help[display help]' \
+  '--version[display version]' \
+  ':user:_users'


           reply	other threads:[~2007-12-08 16:47 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20071208155647.24989.59211.reportbug@soyuz.ipv6.spacelabs.nl>]

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=20071208164634.GA7689@scowler.net \
    --to=schizo@debian.org \
    --cc=454990@bugs.debian.org \
    --cc=marcelm@luon.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).