From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7144 invoked from network); 9 Aug 2002 06:52:46 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Aug 2002 06:52:46 -0000 Received: (qmail 11493 invoked by alias); 9 Aug 2002 06:52:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5213 Received: (qmail 11479 invoked from network); 9 Aug 2002 06:52:14 -0000 Message-ID: <3D53667B.8050202@base2.cc> Date: Thu, 08 Aug 2002 23:51:39 -0700 From: Byron Foster User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020618 X-Accept-Language: en-us, en MIME-Version: 1.0 To: zsh-users@sunsite.dk Subject: Completion question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I can't figure out how to configure the completion system so that only directories are listed after typing 'rm -r ' at the command line, but without the the '-r' option only list files. Can I do this by only using styles, or do I need to write an _rm function? Im using zsh 4.0.4 so far for only listing files I have zstyle ':completion:*:complete:rm:*' file-patterns '*(^-/):files' Of course this breaks 'rm -r' Thanks, Byron