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

Re: Completion



"Anonymous bin ich" wrote:
> I want to add a completion which lists only those files/directories which
> belong to a certain user(s). Is it possible?

It *should* be possible to do something like this:

  _files_belonging_to_pws() { _path_files -g '*(#qu:pws:)'; }

This basically works, but you'll find that the completion system
adds directories belonging to all users behind your back.  A quick
search suggests this is all part of the undocumented complexity of
_path_files in at least two different ways, so I didn't look further.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview



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