zsh-users
 help / color / mirror / code / Atom feed
* complete question
@ 1997-04-14 20:12 Steve Talley
  1997-04-14 21:54 ` blaise
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Talley @ 1997-04-14 20:12 UTC (permalink / raw)
  To: zsh-users

I have a command "beroot" that executes any arguments as root. i.e.

% beroot id -a

prints out:

uid=0(root) gid=10(staff) groups=10(staff),14(sysadmin)

How can I get zsh to complete the first parameter as a command, and the
rest using default completion (files)?

I've tried "compctl -x 'p[1]' -c  -- beroot", which does work for the
1st argument, but doesn't apply default completion to the other
arguments.

Any suggestions?

TIA,

Steve
~~
stephen.talley@central.sun.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: complete question
  1997-04-14 20:12 complete question Steve Talley
@ 1997-04-14 21:54 ` blaise
  0 siblings, 0 replies; 2+ messages in thread
From: blaise @ 1997-04-14 21:54 UTC (permalink / raw)
  To: zsh-users

Steve Talley writes:
 > I have a command "beroot" that executes any arguments as root. i.e.
 > 
 > % beroot id -a
 > 
 > prints out:
 > 
 > uid=0(root) gid=10(staff) groups=10(staff),14(sysadmin)
 > 
 > How can I get zsh to complete the first parameter as a command, and the
 > rest using default completion (files)?

compctl -l '' beroot

-- 
Blaise Tarr
btarr@attmail.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-04-14 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-14 20:12 complete question Steve Talley
1997-04-14 21:54 ` blaise

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).