From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7022 invoked from network); 14 Jun 2000 13:59:14 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Jun 2000 13:59:14 -0000 Received: (qmail 4192 invoked by alias); 14 Jun 2000 13:57:54 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3152 Received: (qmail 4092 invoked from network); 14 Jun 2000 13:57:52 -0000 Date: Wed, 14 Jun 2000 09:57:34 -0400 From: Clint Adams To: Matthias Kopfermann Cc: Bart Schaefer , zsh-users@sunsite.auc.dk Subject: Re: Fun zsh trick for today Message-ID: <20000614095734.E27844@scowler.net> References: <20000614154338.A25454@linux-ws.kg-hittfeld.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <20000614154338.A25454@linux-ws.kg-hittfeld.local>; from kopfermann@trio-hittfeld.de on Wed, Jun 14, 2000 at 03:43:38PM +0200 > i think, this would be a great feature of the mailinglist, if > bart or sven or some other guru would give such nice tricks once > a week or something. > it makes happy user, at least it made me happy :) I'm no Bart-guru, but here's an application of his trick that I find useful for the new completion system: zmodload -i zsh/mapfile hosts=(${(@)${(@)${(M)${(f)mapfile[$HOME/.ssh/known_hosts]}:#[^0-9]*}%%\ *}%%,*}) zstyle ':completion:*:hosts' hosts $hosts