summaryrefslogtreecommitdiff
path: root/etc/completions/_put
blob: c5b19ca17ca2536d988b785beb8e413db21d5ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#compdef put

typeset -a arguments
typeset net

for net in $(grep '^hosts_' ${ZDIR}/functions/put | sed -r 's/^hosts_(\w*)=.*$/\1/'); {
	arguments+="-${net}"
}

arguments+=':file:_files'

_arguments -s ${arguments}