From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4803 invoked from network); 18 Aug 1998 16:54:23 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Aug 1998 16:54:23 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id MAA14103; Tue, 18 Aug 1998 12:41:01 -0400 (EDT) Resent-Date: Tue, 18 Aug 1998 12:40:54 -0400 (EDT) Message-Id: <199808181643.RAA14631@diamond.tao.co.uk> Subject: Re: zsh - new user with questions To: sr@pc-plus.de (Stephen Riehm) Date: Tue, 18 Aug 1998 17:43:25 +0100 (BST) From: "Zefram" Cc: zsh-users@math.gatech.edu In-Reply-To: from "Stephen Riehm" at Aug 18, 98 05:33:42 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"THA0Z2.0.ZR3.MwQsr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1732 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Stephen Riehm wrote: > - extended completion. I'm terribly used to never having to type >UPPERCASE letters, and using > > extreme short cuts. ie: with tcsh's enhanced completions, to complete >the file named: ReadMe.First > > all I would type id: r.f - is there a way to do this sort of >thing in zsh? You can do these things with a completion function. Look at `multicomp' in the zsh distribution. > - I tried use ls ***/*(/l2) to find all the empty directories in a >tree, but it didn't work, instead it counted the number > > of directories in each directory (I think, I wasn't quite sure what it >was doing) You probably want "ls -d" or "echo" or something like that. Plain "ls" will list the *contents* of directories listed on the command line. > occaisonally I want to perform completions which are normally >disallowed by compctl. The simplest example is > cd. "compctl -g '*(-/)' cd" will complete nicely, unless I want to cd >into a hidden (dot) directory. Then it doesn't > complete at all. Is it possible to say that it should complete >non-hidden directories, unless the text typed indicates > otherwise, ie: if I type "cd ", I get a list of all the normal >directories, but if I then type . it should use the > . and show me all the directories beginning with . compctl -/ cd -zefram