diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-19 17:31:23 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-19 17:31:23 +0100 |
commit | 10bf0631361da78a84ff90b0221c76c0ddfc8638 (patch) | |
tree | 401345beccfed1f19933437a232f6595a77c8d9c /etc/completions/_put | |
parent | 68a6e19aa84b4da7d236f45a8107b737cef1b9f5 (diff) |
Added completion for put
Diffstat (limited to 'etc/completions/_put')
-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 |