zsh-users
 help / color / mirror / code / Atom feed
* Completion for chown?
@ 1998-07-17 23:57 Gossamer
  1998-07-18  9:25 ` Heinz Deinhart
  0 siblings, 1 reply; 2+ messages in thread
From: Gossamer @ 1998-07-17 23:57 UTC (permalink / raw)
  To: zsh-users

I haven't quite got the hang of the cmdcmpl stuff yet, so would
somebody be willing to help me with a chown completion thing?

It should complete user/group names for the first two, then filenames,
eg: 
   chown   username.groupname  filename


Gossamer

-- 
: Gossamer     gossamer@tertius.net.au  | Xanadoodler
: http://www.tertius.net.au/~gossamer/  | And proud of it :)
: Nowhere to go and no way of getting there.
: -- Captain Rorvic, 'Doctor Who'


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

* Re: Completion for chown?
  1998-07-17 23:57 Completion for chown? Gossamer
@ 1998-07-18  9:25 ` Heinz Deinhart
  0 siblings, 0 replies; 2+ messages in thread
From: Heinz Deinhart @ 1998-07-18  9:25 UTC (permalink / raw)
  To: Gossamer; +Cc: zsh-users

Hi,

here are my compctls for GNU fileutil package/Changing file attributes
probably they are not perfect, but they work for me:

#  chown, chgrp, chmod, touch
compctl -f -x 's[--]' -k "(changes silent quiet no-dereference verbose recursive version help)" - 's[-]' -k "(- h R c f v)" - 'p[1,1]n[1,:],p[1,1]n[1,.],C[-1,-*]n[1,:],C[-1,-*]n[1,.]' -K cctl_groups - 'p[1,1],C[-1,-*]' -u -S ":" -q -- chown
compctl -f -x 's[--]' -k "(changes silent quiet no-dereference verbose recursive version help)" - 's[-]' -k "(- c f v R h)" - 'p[1,1],C[-1,-*]' -K cctl_groups -- chgrp
compctl -f -x 's[--]' -k "(changes silent quiet no-dereference verbose recursive version help)" - 's[-]' -k "(- c f v R h)" - 'p[1,1],C[-1,-*]' -X '<<modestring ("[ugoa...][[+-=][rwxXstugo...]...][,...]")>>' -- chmod
compctl -f -x 'c[-1,-r],s[--reference=]' -f - 'c[-1,-d],s[--date=]' -X "<<date to use instead of current time>>" - 'c[-1,t],s[--time=]' -X '<<timestamp ("MMDDhhmm[[CC]YY][.ss]")>>' - 'S[--r]' -s "--reference" -S "=" - 'S[--d]' -s "--date" -S "=" - 'S[--t]' -s "--time" -S "=" - 's[--]' -k "(date reference time help version)" - 's[-]' -k "(a c d m r t)" -- touch

ciao, Heinz

__
Heinz Deinhart
PGP: finger://ei.ml.org/heinz



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

end of thread, other threads:[~1998-07-18  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-17 23:57 Completion for chown? Gossamer
1998-07-18  9:25 ` Heinz Deinhart

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