1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

moved to Completion/Unix/Type/_ports

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

View file

@ -1,12 +0,0 @@
#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