From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25455 invoked by alias); 13 Apr 2010 16:45:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15004 Received: (qmail 28489 invoked from network); 13 Apr 2010 16:45:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 13 Apr 2010 17:45:33 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: Zsh autocompletion with no access to a parent directory Message-ID: <20100413174533.5a15043a@news01> In-Reply-To: <3663DC29-7A8F-4A0C-8262-5FFE701C8E3A@sysctl.co.uk> References: <3663DC29-7A8F-4A0C-8262-5FFE701C8E3A@sysctl.co.uk> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Apr 2010 16:45:33.0763 (UTC) FILETIME=[BC4A2130:01CADB28] X-Scanned-By: MailControl A_09_40_00 (www.mailcontrol.com) on 10.71.0.135 On Tue, 13 Apr 2010 09:33:15 -0700 Matt Wright wrote: > The situation is this: At work we make fairly heavy use of network home > directories. In one particular case some important scripts live in > ~foo/bin, however, the actually home directory of ~foo is not > accessible. This appears to give _path_files a big headache, as trying to > type the following results in no completion suggestions. > > # ~foo/bin/ > > As far as I can tell from my attempts to parse the debugging output, it > is attempting to traverse ~foo for path expansion? I was attempting to look > for a way to disable path expansion (the /u/l/b -> /usr/local/bin stuff) > while leaving normal filename suggestion intact. Either that, or a way to > alter _path_files such that it doesn't die in this situation. You can try telling completion to accept any directory that it knows exists without trying to expand the path: zstyle ':completion:*' accept-exact-dirs true I'm not sure if this will help in the case you're describing, however, since it looks like it might not be able to tell if the directory exists. You'll need zsh 4.3. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom