From 869ea9df10c8667831f517be26dc63c480dac99a Mon Sep 17 00:00:00 2001 From: Frank Wittig Date: Tue, 28 Apr 2015 21:58:29 +0200 Subject: [PATCH] also suggest host configs that do not contain a dot --- plugins/ssh/ssh.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ssh/ssh.plugin.zsh b/plugins/ssh/ssh.plugin.zsh index a308c09b1..c32dec852 100644 --- a/plugins/ssh/ssh.plugin.zsh +++ b/plugins/ssh/ssh.plugin.zsh @@ -4,7 +4,7 @@ # Filter out wildcard host sections. local hosts if [[ -f $HOME/.ssh/config ]]; then - hosts=($(cat $HOME/.ssh/config | egrep '^Host.*' | awk '{print $2}' | grep -v '^*' | sed -e 's/\.*\*$//' | grep '\.')) + hosts=($(egrep '^Host.*' $HOME/.ssh/config | awk '{print $2}' | grep -v '^*' | sed -e 's/\.*\*$//')) zstyle ':completion:*:hosts' hosts $hosts fi