From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6016 invoked from network); 9 Jan 2003 15:02:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Jan 2003 15:02:40 -0000 Received: (qmail 20786 invoked by alias); 9 Jan 2003 15:02:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5657 Received: (qmail 20777 invoked from network); 9 Jan 2003 15:02:20 -0000 From: Borzenkov Andrey To: "'Phil Pennock'" , zsh-users@sunsite.dk Subject: RE: Completion of dirs confused over cursor position Date: Thu, 9 Jan 2003 18:02:10 +0300 Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5CE@MOWD019A> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030109145133.GA22171@globnix.org> > I'm sorry that my diagnosis of this stuff is so poor. I've avoided the > new completion stuff, and am having serious head-scratching moments > trying to figure out how to replicate some old compctl stuff. Even > simple things, like: > compctl -f -W ~/some/directory commandname > hmm ... function _foo { _files -W /some/directory } compadd _foo commandname does it work? And doing it automatically: echo > ~/functions/_foo << EOF #compadd commandname _files -W /some/directory EOF fpath=($fpath ~/functions) compinit the last part obviously goes into .zshrc or whatever. Try running compinstall as well. -andrey > The FAQ still points to compctl usage. This is not my week. > > (aargh, I can no longer rely upon $_ as being usable. :^( )