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

9 lines
156 B
Plaintext
Raw Normal View History

1999-09-13 20:22:24 +02:00
#autoload
local expl
: ${(A)ports:=${${(M)${${(f)"$(</etc/services)"}:#\#*}#*/tcp}%%[ ]*}}
_description expl port
compadd "$@" "$expl[@]" - "$ports[@]"