1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

moved from Completion/User/_ports

This commit is contained in:
Sven Wischnowsky 2001-04-02 11:40:48 +00:00
parent a37d674e64
commit d73cd15ba3

@ -0,0 +1,12 @@
#autoload
local expl ports
if ! zstyle -a ":completion:${curcontext}:" ports ports; then
(( $+_cache_ports )) ||
: ${(A)_cache_ports:=${${(M)${${(f)"$(</etc/services)"}:#\#*}#*/tcp}%%[ ]*}}
ports=( "$_cache_ports[@]" )
fi
_wanted ports expl port compadd "$@" -a ports