summaryrefslogtreecommitdiff
path: root/etc/completions/_put
blob: 0dec48799917946292666199b0ec37ced5e3f3bc (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