From 6773863b05cd19c7e919ce435bb70681833f4207 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 13 Jun 2007 15:39:12 +0000 Subject: 23556: completion for rrdtool. --- Completion/Unix/Command/_rrdtool | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Completion/Unix/Command/_rrdtool (limited to 'Completion/Unix/Command/_rrdtool') 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 -- cgit 1.4.1