about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-06-13 15:39:12 +0000
committerClint Adams <clint@users.sourceforge.net>2007-06-13 15:39:12 +0000
commit6773863b05cd19c7e919ce435bb70681833f4207 (patch)
tree1ed8283bf8a3a36ac451d0ac71f8359c271f04ae /Completion/Unix
parent505675f2bd03149b189b31a76bc319de379d0e91 (diff)
downloadzsh-6773863b05cd19c7e919ce435bb70681833f4207.tar.gz
zsh-6773863b05cd19c7e919ce435bb70681833f4207.tar.xz
zsh-6773863b05cd19c7e919ce435bb70681833f4207.zip
23556: completion for rrdtool.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_rrdtool23
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