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

# Usage: _hostport host

local host="$1"
shift

compadd "$@" - ${${(M)hosts\:#$host\:*}#*\:}