Auto-complete fails on SSH? #1337

Closed
benmezger opened this Issue Oct 1, 2012 · 1 comment

Comments

Projects
None yet
3 participants

Hey guys, usually when you write ssh user@+tab so you can see all the hosts, it works fine, but unfortunatly, this are the choices which gives me:

[11.11.11.11]:2222 <- Host + port.

Why is it giving me like this? with a bracket and ? and :port as if it's telnet?

Any fix for this?
Regards

@blueyed blueyed added a commit to blueyed/oh-my-zsh that referenced this issue Dec 17, 2012

@blueyed blueyed Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.
ef002a8
Contributor

blueyed commented Dec 17, 2012

This is caused by oh-my-zsh's ':completion:*:hosts' config (lib/completion.zsh). The entry is coming probably from ~/.ssh/known_hosts and interpreted in a wrong way.

The easiest fix to this appears to be using zsh's default completion for hosts.

@blueyed blueyed added a commit to blueyed/oh-my-zsh that referenced this issue Jan 10, 2013

@blueyed blueyed Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

Conflicts:

	lib/completion.zsh
cabe82d

@blueyed blueyed added a commit to blueyed/oh-my-zsh that referenced this issue Mar 13, 2014

@blueyed blueyed Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
71d9420

@apoh apoh added a commit to apoh/oh-my-zsh that referenced this issue Apr 8, 2014

@blueyed @apoh blueyed + apoh Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
0c73c41

@neiljdo neiljdo added a commit to neiljdo/oh-my-zsh that referenced this issue Apr 11, 2014

@blueyed @neiljdo blueyed + neiljdo Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
113c231

@w31 w31 pushed a commit to w31/oh-my-zsh that referenced this issue Apr 30, 2014

@blueyed blueyed Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
6eb3511

@bobtwinkles bobtwinkles added a commit to bobtwinkles/oh-my-zsh that referenced this issue May 6, 2014

@blueyed @bobtwinkles blueyed + bobtwinkles Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
5c2ceae

@aaccurso aaccurso pushed a commit to aaccurso/oh-my-zsh that referenced this issue May 17, 2014

@blueyed blueyed + Alan Accurso Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
997ab43

@arowla arowla added a commit to arowla/oh-my-zsh that referenced this issue May 28, 2014

@blueyed @arowla blueyed + arowla Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
6987ab2

@benjaoming benjaoming added a commit to benjaoming/oh-my-zsh that referenced this issue Nov 28, 2014

@blueyed @benjaoming blueyed + benjaoming Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
186ba11

@kenton kenton added a commit to kenton/oh-my-zsh that referenced this issue Jan 9, 2015

@blueyed @kenton blueyed + kenton Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
a1d9f09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment