From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22567 invoked from network); 17 Jul 2004 06:44:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jul 2004 06:44:53 -0000 Received: (qmail 16524 invoked from network); 17 Jul 2004 06:44:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 06:44:43 -0000 Received: (qmail 15897 invoked by alias); 17 Jul 2004 06:44:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7703 Received: (qmail 15887 invoked from network); 17 Jul 2004 06:44:00 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 17 Jul 2004 06:44:00 -0000 Received: (qmail 15096 invoked from network); 17 Jul 2004 06:42:08 -0000 Received: from xover.htu.tuwien.ac.at (128.131.95.22) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 06:42:08 -0000 Received: from xover.htu.tuwien.ac.at (ekimus@localhost [127.0.0.1]) by xover.htu.tuwien.ac.at (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6H6g7xm032459 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 17 Jul 2004 08:42:07 +0200 Received: (from ekimus@localhost) by xover.htu.tuwien.ac.at (8.12.3/8.12.3/Debian-6.6) id i6H6g7Y6032458 for zsh-users@sunsite.dk; Sat, 17 Jul 2004 08:42:07 +0200 From: Martin Marcher Date: Sat, 17 Jul 2004 08:42:07 +0200 To: zsh-users Subject: [: Re: ssh scp completion] sorry wrong key pressed :/ Message-ID: <20040717064207.GA7673@xover.htu.tuwien.ac.at> Mail-Followup-To: zsh-users Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline User-Agent: Mutt/1.3.28i X-PGP-Key: http://stud4.tuwien.ac.at/~e0225481/pubkey.asc X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ----- Forwarded message from ----- Date: Fri, 16 Jul 2004 23:02:09 +0200 To: Laurent Rineau Subject: Re: ssh scp completion X-PGP-Key: http://stud4.tuwien.ac.at/~e0225481/pubkey.asc On Fri, Jul 16, 2004 at 05:05:48PM +0200, Laurent Rineau wrote: > You can set up directly the style hosts: >=20 > zstyle ':completion:*:*:*' hosts foo bar >=20 > or use something like what I have in my .zshrc: >=20 > [ -f ~/.ssh/config ] && : ${(A)ssh_config_hosts:=3D${${${${(@M)${(f)"$(<~= /.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}} > zstyle ':completion:*:*:*' hosts $ssh_config_hosts $ssh_known_hosts yes that's exactly what i was searching for. but i'd like at some point to be able to write stuff like this myself :). some explanation of this stuff would be more of what i thought, because from what i found out by now it's not only expansion there's a lot of stuff going on there. and another question: why is it that i dont simply use some grep/awk combination? seems to be much more human readable. thx martin ----- End forwarded message ----- --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFA+Mo/ylzOokUazXERAgDhAJ0dCD8Ouw7NKjPFo7lrj31EYDOeOQCgt4Pn SbQ/v7gl/j3pRmyoPtdmf6E= =o0Ku -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--