blob: 10b2fe9157287070e3ebf8482cc2a04077183a11 (
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 : -p -r ${arguments}
|