about summary refs log tree commit diff
path: root/Completion/User/_ports
blob: 950212832677ec04db49260bc09152007a0a494c (plain) (blame)
1
2
3
4
5
6
7
8
#autoload

local expl

: ${(A)ports:=${${(M)${${(f)"$(</etc/services)"}:#\#*}#*/tcp}%%[ 	]*}}

_description expl port
compadd "$@" "$expl[@]" - "$ports[@]"