diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_hosts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b6d58ef56..efc66536b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-04 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 22192: Danek Duvall: Completion/Unix/Type/_users: also remove + comments from .ssh/known_hosts. + 2006-02-03 Peter Stephenson <p.w.stephenson@ntlworld.com> * 22191: from Danek Duvall: Completion/Unix/Type/_hosts, diff --git a/Completion/Unix/Type/_hosts b/Completion/Unix/Type/_hosts index 7d88a4532..8a77b3db6 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 |