zsh-users
 help / color / mirror / code / Atom feed
From: "Mads Martin Jørgensen" <mmj@suse.com>
To: Alan Third <alan@idiocy.org>, zsh-users@sunsite.dk
Subject: Re: 2 newbie ?s
Date: Wed, 6 Jun 2001 17:34:24 -0700	[thread overview]
Message-ID: <20010606173424.A675@suse.com> (raw)
In-Reply-To: <20010607012609.A13243@idiocy.org>; from alan@idiocy.org on Thu, Jun 07, 2001 at 01:26:09AM +0100

* Alan Third <alan@idiocy.org> [Jun 06. 2001 17:26]:
> On Wed, Jun 06, 2001 at 04:02:31PM -0700, David Thiel wrote:
> > Yeah, I have something similar, but it won't complete the hostname if you
> > have something directly before it, like dthiel@blablabla.com.  If you just
> > ping bla(tab), it'll work.  That's what I'm trying to figure out.
> 
> I use:
> 
> zstyle ':completion:*:hosts' hosts $hosts
> 
> Where $hosts holds the list of hostnames I want to use.
> That seems to work perfectly with ssh alan@os<tab> and suchlike.

Or how about this one:

zstyle -e ':completion:*:ssh:*' hosts 'reply=($(sed -e "/^#/d" -e "s/
.*\$//" -e "s/,/ /g" /etc/ssh_known_hosts ~/.ssh/known_hosts
~/.ssh/known_hosts2 2>/dev/null))'

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic and
totally illogic, with just a little bit more effort."
                                -- A. P. J.


  reply	other threads:[~2001-06-07  0:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-06 21:03 David Thiel
     [not found] ` <3B1E9F91.5228C985@cohesive.net>
2001-06-06 23:02   ` David Thiel
2001-06-07  0:26     ` Alan Third
2001-06-07  0:34       ` Mads Martin Jørgensen [this message]
2001-06-07 16:33         ` Bart Schaefer
     [not found]           ` <20010607144618.A18221@dman.com>
2001-06-08  5:13             ` Bart Schaefer
2001-06-07 17:22 ` 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=20010606173424.A675@suse.com \
    --to=mmj@suse.com \
    --cc=alan@idiocy.org \
    --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).