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:
parent
ffd7314125
commit
a37d674e64
1 changed files with 0 additions and 12 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue