From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10747 invoked from network); 23 Aug 1999 13:29:04 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Aug 1999 13:29:04 -0000 Received: (qmail 845 invoked by alias); 23 Aug 1999 13:28:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2498 Received: (qmail 830 invoked from network); 23 Aug 1999 13:28:28 -0000 Date: Mon, 23 Aug 1999 23:35:51 +1000 From: Andre Pang To: Dominik Vogt Cc: zsh-users@sunsite.auc.dk Subject: Re: cd directory completion? Message-ID: <19990823233551.B31064@drizzt.ihug.com.au> Reply-To: Andre Pang Mail-Followup-To: Dominik Vogt , zsh-users@sunsite.auc.dk References: <19990823152219.I32224@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19990823152219.I32224@hp.com>; from Dominik Vogt on Mon, Aug 23, 1999 at 03:22:19PM +0200 On Mon, Aug 23, 1999 at 03:22:19PM +0200, Dominik Vogt wrote: > I'd like to have cd complete directory names as well as > symlinks that point to directories (zsh-3.0.6). Is there > a way to do this without writing a completion function? > (And I don't want to fiddle with any 'chase symlink' setting > there may be - I like them the way they are). I couldn't > find anything appropriate in the man page. If it's not > possible without a function, has anybody written one and > can send it to me? I dunno if this is any 'good' (from a technical zsh perspective), but here's mine for 3.1.5. May (not) work on 3.0.6. Also have provided other (really) simple ones which I've used. compctl -g '*(-/) .*(-/)' cd # what you want compctl -g '*(/) .*(/)' rmdir compctl -j -P % kill compctl -j -P % fg compctl -j -P % bg compctl -u w compctl -m whence compctl -c which compctl -c man compctl -u who Flame away if any of them suck :). -- __/\___/\_/\____/\____/\ Andre Pang / /__ / \_ \_ __) ( : / (__: ) | | _)_ ozone@ihug.com.au, andrep@cse.unsw.edu.au \___( ______/|__;__|_____| http://www.mindflux.com.au/ozone/ \/ - #ozone mobile ph#: 0411-882299