zsh-users
 help / color / mirror / code / Atom feed
From: Rik <rik@spoon.pkl.net>
To: zsh-users@sunsite.dk
Subject: Re: ssh completion problem
Date: Wed, 6 Feb 2002 12:18:24 +0000	[thread overview]
Message-ID: <20020206121824.GA1335@spoon.pkl.net> (raw)
In-Reply-To: <1020205170847.ZM29675@candle.brasslantern.com>

On Tue, Feb 05, 2002 at 05:08:47PM +0000, Bart Schaefer wrote:
> The symptom is that, even though I have a `users-hosts' style (real account
> names munged below to avoid email address harvesters) such as:
> 
>     zstyle ':completion:*:(ssh|scp):*:my-accounts' users-hosts \
>        lll@bbb.com zzz@iii.com sss@zzz.com
> 
> when I complete after `lll@' I get offered all possible hosts from the
> `hosts' style.  I want to be offered only `bbb.com' in that case.
> 
> (When I complete after just `l', it completes to `lll', then waits for
> another tab.)

That's exactly one of the things that was bothering me. I just complete
from an arbitrary list as so (using your example accounts):

_ssh_acounts () {
    compadd lll@bbb.com zzz@iii.com sss@zzz.com
}
compdef _ssh_accounts ssh:

It then seems to work the way I expect it to (which says nothing of the
correctness :))

-- 
PGP Key: D2729A3F - Keyserver: wwwkeys.uk.pgp.net - rich at rdrose dot org
Key fingerprint = 5EB1 4C63 9FAD D87B 854C  3DED 1408 ED77 D272 9A3F
Public key also encoded with outguess on http://rikrose.net


      parent reply	other threads:[~2002-02-06 12:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-05 17:08 Bart Schaefer
2002-02-05 17:38 ` Oliver Kiddle
2002-02-06 12:18 ` Rik [this message]

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=20020206121824.GA1335@spoon.pkl.net \
    --to=rik@spoon.pkl.net \
    --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).