mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 19:20:53 +02:00
Weed out hashed host lines that start with a '|' since they're
completely useless for completion.
This commit is contained in:
parent
88ca4d461d
commit
4c83a7dbbf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue