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:
parent
a37d674e64
commit
d73cd15ba3
12
Completion/Unix/Type/_ports
Normal file
12
Completion/Unix/Type/_ports
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user