zsh-users
 help / color / mirror / code / Atom feed
* problems with ssh tab completion
@ 2006-10-09  2:37 Stanislaw Halik
  2006-10-09 15:01 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Stanislaw Halik @ 2006-10-09  2:37 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2006-10-10 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-09  2:37 problems with ssh tab completion Stanislaw Halik
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

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).