From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9904 invoked from network); 26 Aug 2003 18:16:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Aug 2003 18:16:21 -0000 Received: (qmail 22253 invoked by alias); 26 Aug 2003 18:16:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6490 Received: (qmail 22243 invoked from network); 26 Aug 2003 18:15:59 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 26 Aug 2003 18:15:59 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [209.151.233.96] by sunsite.dk (MessageWall 1.0.8) with SMTP; 26 Aug 2003 18:15:59 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.mode3.com (Postfix) with ESMTP id EBB93C168 for ; Tue, 26 Aug 2003 12:49:20 -0700 (PDT) Date: Tue, 26 Aug 2003 12:49:20 -0700 (PDT) From: zak@mode3.com To: zsh-users@sunsite.dk Subject: Tab Completion Question. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Is there a way to build pattern matching into compctl lists? Here's what I'm trying to do. In my .zshrc I have the following set. hosts=(foo.bar) compctl -k hosts ssh I would like to be able to set the hosts variable to match for different usernames. So that the following command would tab complete: ssh root@foo.bar I would imagine that you would do this by setting something like: hosts=([root@]foo.bar) but that doesn't work at all. Of course I can always set something like hosts=(foo.bar root@foo.bar) but in reality I have TONS of hosts listed for the hosts= variable and creating two entries for all of them would be a pain... And eventually I would like to be able to automatically parse my DNS condiguration files for this list... Any ideas? Thanks! -- Zak L Brown Audio/Systems Engineer www.mode3.com www.insulinmusic.com -- "How Did Our Oil Get Under Their Sand?"