From 4c83a7dbbfa9fe18a6e8c9912c38d4cdc53bf91b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 16 Feb 2006 22:44:00 +0000 Subject: Weed out hashed host lines that start with a '|' since they're completely useless for completion. --- Completion/Unix/Type/_hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Completion/Unix/Type/_hosts b/Completion/Unix/Type/_hosts index 8a77b3db6..21a26e2e0 100644 --- a/Completion/Unix/Type/_hosts +++ b/Completion/Unix/Type/_hosts @@ -23,7 +23,7 @@ if ! zstyle -a ":completion:${curcontext}:hosts" hosts _hosts; then fi if [[ -r ~/.ssh/known_hosts ]]; then - _cache_hosts+=(${${${(u)${(f)"$(<~/.ssh/known_hosts)"}%%[ ,#]*}:#(#s)[0-9]##.[0-9]##.[0-9]##.[0-9]##(#e)}:#(#s)[0-9a-f:]##(#e)}) + _cache_hosts+=(${${${(u)${(f)"$(<~/.ssh/known_hosts)"}%%[ ,|#]*}:#(#s)[0-9]##.[0-9]##.[0-9]##.[0-9]##(#e)}:#(#s)[0-9a-f:]##(#e)}) fi fi -- cgit 1.4.1