From: martin f. krafft Date: Thu, 15 May 2008 10:00:38 +0000 (+0200) Subject: read known_hosts file, not dir X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/642cfc796043ea4965a61ed9b45b07c179888012?ds=inline read known_hosts file, not dir --- 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