From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20301 invoked from network); 14 Apr 2007 14:09:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Apr 2007 14:09:19 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98204 invoked from network); 14 Apr 2007 14:09:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Apr 2007 14:09:13 -0000 Received: (qmail 29771 invoked by alias); 14 Apr 2007 14:09:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11391 Received: (qmail 29756 invoked from network); 14 Apr 2007 14:09:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Apr 2007 14:09:01 -0000 Received: (qmail 96805 invoked from network); 14 Apr 2007 14:09:01 -0000 Received: from wr-out-0506.google.com (64.233.184.239) by a.mx.sunsite.dk with SMTP; 14 Apr 2007 14:08:57 -0000 Received: by wr-out-0506.google.com with SMTP id i28so1074420wra for ; Sat, 14 Apr 2007 07:08:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=uqdS/gP10p31U1WShco7+d97C+HlB1l4KNn14pujaumLGyOEpEeEXVTqJQge3WRVT4E74v6cJOsJlCfyUyywZ6tzUPz2qTmF2RXY69SQCW309vhayeQj8uHcAv2bPeLE87UWfvXiJ1sgos7G8p3Nmec+OVSm/oq8QmD0vuQUh3g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DK6NnuB6Bfs4wTzjjaGVkCJqbBliw1L3sN5YnpwQbRmLNR4tcQWnLvLuHj0ULcIxcxNR4P3ADyOKTytTzB/39NySbVx7RHRs1XdLC5Y7m5eDrtJg5iCyRO/kY0QcGlhaePaq2N52jl502fiSS0aOReHaHWt+Q280X9n/3kx/GP8= Received: by 10.115.60.1 with SMTP id n1mr1368757wak.1176559736229; Sat, 14 Apr 2007 07:08:56 -0700 (PDT) Received: by 10.115.73.18 with HTTP; Sat, 14 Apr 2007 07:08:56 -0700 (PDT) Message-ID: Date: Sat, 14 Apr 2007 10:08:56 -0400 From: "Michael Drzal" To: zsh-users@sunsite.dk Subject: completion help MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I apologize in advance if this question has been asked before and answered, but I spent the last couple of days searching the web and reading docs, and I came up empty handed. I love the zsh completion system, but I'm having a little trouble trying to figure out how to setup a specific completion. I work in an environment where hosts have DNS entries in multiple domains. There is one domain for normal host access, another domain for some form of inband access (think DRAC on dells or SP/SC on sun hosts), and a third for out of band access (serial console). I would like to be able to complete the domain name for various commands (ssh, ping, traceroute, ...). I would envision something like: % ssh host host host.regular host.inband host.outofband I realize that I could enumerate all of the possible hosts with the hosts style, but this seems like overkill. Is there some way that I could do something like: zstyle context domains domain1 domain2 domain3 ... and get the effect that I'm looking for? Mike