zsh-workers
 help / color / mirror / code / Atom feed
* zsh does not offer ssh host from config
@ 2022-12-09  1:06 Jan Palus
  2022-12-10 12:01 ` Daniel Shahaf
  2022-12-10 12:08 ` Roman Perepelitsa
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Palus @ 2022-12-09  1:06 UTC (permalink / raw)
  To: zsh-workers

Hi,

I've got a single real hostname starting with 'build' prefix which is present
in my known_hosts file. I also have a couple Host specifications in ssh config
file having names starting with 'build' but real HostName does not resolve to
name starting with 'build'. When doing `ssh build<tab>` I'd expect to be
offered both real hostname as well as Host specification names, however only
real hostname is immediately completed. That's because of _ssh_hosts returning
on successful hosts completion:

# If users-hosts matches, we shouldn't complete anything else.
if [[ "$IPREFIX" == *@ ]]; then
  _combination -s '[:@]' my-accounts users-hosts "users=${IPREFIX/@}" hosts "$@" && return
else
  _combination -s '[:@]' my-accounts users-hosts \
    ${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@" && return # <--- HERE
fi

Is this intentional that config file parsing is skipped entirely if host was
completed successfully?


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

end of thread, other threads:[~2022-12-10 20:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09  1:06 zsh does not offer ssh host from config Jan Palus
2022-12-10 12:01 ` Daniel Shahaf
2022-12-10 12:08 ` Roman Perepelitsa
2022-12-10 20:06   ` Jan Palus
2022-12-10 20:31     ` Roman Perepelitsa
2022-12-10 20:49       ` Bart Schaefer

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