zsh-users
 help / color / mirror / code / Atom feed
* [: Re: ssh scp completion] sorry wrong key pressed :/
@ 2004-07-17  6:42 Martin Marcher
  2004-07-17 18:44 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Marcher @ 2004-07-17  6:42 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

----- Forwarded message from  -----

Date: Fri, 16 Jul 2004 23:02:09 +0200
To: Laurent Rineau <rineau@clipper.ens.fr>
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:
> 
> zstyle ':completion:*:*:*' hosts foo bar
> 
> or use something like what I have in my .zshrc:
> 
> [ -f ~/.ssh/config ] && : ${(A)ssh_config_hosts:=${${${${(@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 -----

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-17 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-17  6:42 [: Re: ssh scp completion] sorry wrong key pressed :/ Martin Marcher
2004-07-17 18:44 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).