[Bash-completion-commits] [SCM] bash-completion branch, master, updated. b3f8e617ac7569a4c6bd3f3f6e6e3bc51d61d3f4

Guillaume Rousse guillomovitch at zarb.org
Fri May 29 07:57:19 UTC 2009


The following commit has been merged in the master branch:
commit 0b8a2cf7af4a5c3e4a6620e203d9c0c19e4aefb6
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date:   Wed May 27 18:21:29 2009 +0200

    split rrdtool completion

diff --git a/Makefile.am b/Makefile.am
index 5eaa6f8..37fa7d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,6 +72,7 @@ bashcomp_DATA = contrib/ant \
 		contrib/ri \
 		contrib/rpcdebug \
 		contrib/rpmcheck \
+		contrib/rrdtool \
 		contrib/rsync \
 		contrib/samba \
 		contrib/sbcl \
diff --git a/bash_completion b/bash_completion
index 70fb72d..5feb765 100644
--- a/bash_completion
+++ b/bash_completion
@@ -4944,16 +4944,6 @@ _invoke_rc_d()
 } &&
 complete -F _invoke_rc_d invoke-rc.d
 
-have rrdtool &&
-_rrdtool ()
-{
-	cur=`_get_cword`
-	COMPREPLY=( $( compgen -W 'create update updatev graph dump \
-	                           restore last lastupdate first info \
-	                           fetch tune resize xport' -- $cur ) )
-} &&
-complete -F _rrdtool rrdtool
-
 _filedir_xspec()
 {
 	local IFS cur xspec
diff --git a/contrib/rrdtool b/contrib/rrdtool
new file mode 100644
index 0000000..40e2cbf
--- /dev/null
+++ b/contrib/rrdtool
@@ -0,0 +1,14 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for rrdtool
+
+have rrdtool &&
+_rrdtool ()
+{
+	cur=`_get_cword`
+	COMPREPLY=( $( compgen -W 'create update updatev graph dump \
+	                           restore last lastupdate first info \
+	                           fetch tune resize xport' -- $cur ) )
+} &&
+complete -F _rrdtool rrdtool

-- 
bash-completion



More information about the Bash-completion-commits mailing list