summaryrefslogtreecommitdiff
path: root/etc/completions/_put
blob: 2974706524017adad6637531ef59976dcffca459 (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_' ~/packages/zsh/etc/functions/put | sed -r 's/^hosts_(\w*)=.*$/\1/'); {
	arguments+="-$net"
}

arguments+=':file:_files'

_arguments -s $arguments