From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18564 invoked from network); 22 Dec 1999 23:12:01 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Dec 1999 23:12:01 -0000 Received: (qmail 16585 invoked by alias); 22 Dec 1999 23:11:49 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2800 Received: (qmail 16578 invoked from network); 22 Dec 1999 23:11:49 -0000 To: ZSH Mail List Subject: Re: trying to learn zstyle In-reply-to: "Shao Zhang"'s message of "Wed, 22 Dec 1999 11:49:28 +1100." <19991222114928.A29277@localhost> Date: Wed, 22 Dec 1999 23:13:06 +0000 From: Peter Stephenson Message-Id: Shao Zhang wrote: > How do I use zstyle to make mtvp to complete to the files with > *.mpg or *.mpeg or *.MPG and so on. Sorry, missed this bit. The easy answer (again, this is post-3.1.6) is _mtvp() { local expl _description files expl 'MPEG file' _files "$expl[@]" -g '*.(mpg|mpeg|MPG)' } compdef _mtvp mtvp I got that simply by copying the file _gunzip, which does the same thing with .gz files. Copying existing files is usually the way. -- Peter Stephenson