diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completions/_put | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/completions/_put b/etc/completions/_put new file mode 100644 index 0000000..2974706 --- /dev/null +++ b/etc/completions/_put @@ -0,0 +1,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 |