about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-02-16 22:44:00 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-02-16 22:44:00 +0000
commit4c83a7dbbfa9fe18a6e8c9912c38d4cdc53bf91b (patch)
tree35a145a4bf724e3af3620d10a760e813d27698bd /Completion
parent88ca4d461daecd9c405ea9e5fb019a44ecdb6985 (diff)
downloadzsh-4c83a7dbbfa9fe18a6e8c9912c38d4cdc53bf91b.tar.gz
zsh-4c83a7dbbfa9fe18a6e8c9912c38d4cdc53bf91b.tar.xz
zsh-4c83a7dbbfa9fe18a6e8c9912c38d4cdc53bf91b.zip
Weed out hashed host lines that start with a '|' since they're
completely useless for completion.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_hosts2
1 files changed, 1 insertions, 1 deletions
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