mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 04:12:06 +02:00
manual/9109
This commit is contained in:
parent
0679237b81
commit
6978986a4c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ local expl hosts
|
|||
|
||||
if ! zstyle -a ":completion${curcontext}:hosts" hosts hosts; then
|
||||
(( $+_cache_hosts )) ||
|
||||
: ${(A)_cache_hosts:=${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
|
||||
: ${(A)_cache_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
|
||||
|
||||
hosts=( "$_cache_hosts[@]" )
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue