summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/completions/_put12
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