From 642cfc796043ea4965a61ed9b45b07c179888012 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 15 May 2008 12:00:38 +0200 Subject: [PATCH] read known_hosts file, not dir --- .zsh/zshrc/parts.d/50_ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/zshrc/parts.d/50_ssh b/.zsh/zshrc/parts.d/50_ssh index 8daa9df..d849b39 100644 --- a/.zsh/zshrc/parts.d/50_ssh +++ b/.zsh/zshrc/parts.d/50_ssh @@ -11,7 +11,7 @@ # populate hosts completion with SSH's known_hosts if [ -r $HOME/.ssh/known_hosts ]; then local _myhosts - _myhosts=(${${${${(f)"$(cat $HOME/.ssh/known_hosts.d/*(.N))"}:#[0-9]*}%%\ *}%%,*}) + _myhosts=(${${${${(f)"$(cat $HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*}) zstyle ':completion:*' hosts $_myhosts unset _myhosts fi -- 2.39.5