1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-27 14:11:14 +01:00
zsh/Completion/User/_ports
1999-09-13 18:22:24 +00:00

8 lines
156 B
Text

#autoload
local expl
: ${(A)ports:=${${(M)${${(f)"$(</etc/services)"}:#\#*}#*/tcp}%%[ ]*}}
_description expl port
compadd "$@" "$expl[@]" - "$ports[@]"