zsh-users
 help / color / mirror / code / Atom feed
From: Stanislaw Halik <sthalik@tehran.lain.pl>
To: zsh-users@sunsite.dk
Subject: problems with ssh tab completion
Date: Mon, 9 Oct 2006 04:37:29 +0200	[thread overview]
Message-ID: <20061009023729.GA6361@localhost.localdomain> (raw)

I'm having problems with Tab completion script for ssh.

When I execute a zstyle line:

zstyle ':completion:*' hosts

to only use hosts from ~/.ssh/config, omitting ones in /etc/hosts, and
type:

% ssh username@^I

I get:

% ssh username@.

with a literal dot after the '@' sign. The host list is displayed after
another Tab key press. However, typing characters won't help to
disambiguate the list, as the leading '.' is there. Why is it being
displayed?

Strangely enough, it only happens if the username portion is longer than
4 characters.

The second problem occurs after matching multiple similar hosts, such as
ones I connect to: "rollercoaster.insane.pl" and "rodney.ltd.pl".
Typing:

% ssh sthalik@ro^I

yields:

~% ssh sthalik@ro..pl
remote host name
rodney.ltd.pl            rollercoaster.insane.pl

with the cursor placed between two dots.

I'd like it to just omit the '..pl' portion, as I find this kind of
completion confusing.

Oddly enough, it only happens if I specify the username portion and the
'@' sign.

I'm using zsh 4.3.2.

Any hints?
-- sh


             reply	other threads:[~2006-10-09  2:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-09  2:37 Stanislaw Halik [this message]
2006-10-09 15:01 ` Bart Schaefer
2006-10-09 22:23   ` Stanislaw Halik
2006-10-10 15:47     ` Bart Schaefer
2006-10-10 16:26       ` Stanislaw Halik

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=20061009023729.GA6361@localhost.localdomain \
    --to=sthalik@tehran.lain.pl \
    --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).