1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/User/_ports
1999-09-13 18:22:24 +00:00

9 lines
156 B
Plaintext

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