summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_rrdtool23
2 files changed, 29 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a40124fe6..271ed0d74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-12  Clint Adams  <clint@zsh.org>
+
+	* 23556: Completion/Unix/Command/_rrdtool: completion
+	for rrdtool.
+
 2007-06-12  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23554: Doc/Zsh/mod_sched.yo, Doc/Zsh/params.yo,
@@ -7,7 +12,7 @@
 2007-06-12  Clint Adams  <clint@zsh.org>
 
 	* unposted: Completion/Unix/Command/_pkg-config,
-	Completion/Unix/Command/_unexpand: remove RCS $Id: ChangeLog,v 1.3547 2007/06/12 22:01:37 pws Exp $
+	Completion/Unix/Command/_unexpand: remove RCS Id
 	comments.
 
 2007-06-12  Peter Stephenson  <pws@csr.com>
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