From 10bf0631361da78a84ff90b0221c76c0ddfc8638 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 19 Dec 2008 17:31:23 +0100 Subject: Added completion for put --- etc/completions/_put | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/completions/_put (limited to 'etc/completions') 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 -- cgit v1.2.3