ssh autocomplete -- where do the hosts come from? #295
-
When I type |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
On macOS, the You can override this behavior
|
Beta Was this translation helpful? Give feedback.
On macOS, the
_hosts
function of Zsh's completion system gets hosts/etc/hosts
and~/.ssh/known_hosts
.You can override this behavior
zstyle ':completion:*:hosts' hosts <hostname> ...
, which overrides all of the above, orzstyle ':completion:*:hosts' known-hosts-files <filepath> ...
, which overrides only the second point above.