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

Re: Completion for chown?



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




Messages sorted by: Reverse Date, Date, Thread, Author