From: Martin Marcher <ekimus@xover.htu.tuwien.ac.at>
To: zsh-users <zsh-users@sunsite.dk>
Subject: [: Re: ssh scp completion] sorry wrong key pressed :/
Date: Sat, 17 Jul 2004 08:42:07 +0200 [thread overview]
Message-ID: <20040717064207.GA7673@xover.htu.tuwien.ac.at> (raw)
[-- 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 --]
next reply other threads:[~2004-07-17 6:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-17 6:42 Martin Marcher [this message]
2004-07-17 18:44 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040717064207.GA7673@xover.htu.tuwien.ac.at \
--to=ekimus@xover.htu.tuwien.ac.at \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).