Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion
- X-seq: zsh-users 11487
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Completion
- Date: Tue, 15 May 2007 17:23:21 +0100
- In-reply-to: <82839db60705150827u6c2d4397hb4dfb1e1968a3f9c@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <82839db60705150827u6c2d4397hb4dfb1e1968a3f9c@xxxxxxxxxxxxxx>
"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