diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-19 00:37:21 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-19 00:37:21 +0000 |
commit | 3ea0ed6cfe7efb4c96b287815f8dd427074f7afc (patch) | |
tree | 5f3d19793720015daaac7b570018cbf5c588de94 /Completion/Unix | |
parent | b40cb542ff2d60a404c4d47db6417b469e623179 (diff) | |
download | zsh-3ea0ed6cfe7efb4c96b287815f8dd427074f7afc.tar.gz zsh-3ea0ed6cfe7efb4c96b287815f8dd427074f7afc.tar.xz zsh-3ea0ed6cfe7efb4c96b287815f8dd427074f7afc.zip |
Merge new completion onto the 4.2 branch.
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_rrdtool | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_rrdtool b/Completion/Unix/Command/_rrdtool new file mode 100644 index 000000000..9d097bd77 --- /dev/null +++ b/Completion/Unix/Command/_rrdtool @@ -0,0 +1,23 @@ +#compdef rrdtool + +_arguments \ + ':rrdtool command:(create update updatev graph dump restore + last lastupdate first help info fetch tune + resize xport)' \ + '*::subcmd:->subcmd' && return 0 + +case "$state" in + (subcmd) + + case "$words[1]" in + (help) + _wanted -V 'subcommands' expl 'subcommand' compadd \ + create update updatev graph dump restore last lastupdate \ + first help info fetch tune resize xport + ;; + (*) + _files + ;; + esac + ;; +esac |