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

David Paleino d.paleino at gmail.com
Fri Jun 5 06:32:26 UTC 2009


The following commit has been merged in the master branch:
commit f844abd042380aa57206749b57b07ebee013bcb6
Author: David Paleino <d.paleino at gmail.com>
Date:   Fri Jun 5 08:32:07 2009 +0200

    Split autorpm completion to contrib/autorpm

diff --git a/CHANGES b/CHANGES
index 403bf07..0eaad69 100644
--- a/CHANGES
+++ b/CHANGES
@@ -18,6 +18,7 @@ bash-completion (1.x)
   * Split dict completion to contrib/dict
   * Split {update,invoke}-rc.d completions to contrib/sysv-rc
   * Don't install _subversion anymore
+  * Split autorpm completion to contrib/autorpm
 
   [ Ville Skyttä ]
   * Split yum and yum-arch completion into contrib/yum.
diff --git a/Makefile.am b/Makefile.am
index 17c9d95..beddea0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,6 +5,7 @@ bashcompdir = $(sysconfdir)/bash_completion.d
 bashcomp_DATA = contrib/ant \
 		contrib/apache2ctl \
 		contrib/aspell \
+		contrib/autorpm \
 		contrib/bind-utils \
 		contrib/bitkeeper \
 		contrib/bittorrent \
diff --git a/bash_completion b/bash_completion
index dbeed2a..20ed34f 100644
--- a/bash_completion
+++ b/bash_completion
@@ -2420,23 +2420,6 @@ _jar()
 } &&
 complete -F _jar $filenames jar
 
-# autorpm(8) completion
-#
-have autorpm &&
-_autorpm()
-{
-	local cur
-
-	COMPREPLY=()
-	cur=`_get_cword`
-
-	COMPREPLY=( $( compgen -W '--notty --debug --help --version \
-				   auto add fullinfo info help install list \
-				   remove set' -- $cur ) )
-
-} &&
-complete -F _autorpm autorpm
-
 # This meta-cd function observes the CDPATH variable, so that cd additionally
 # completes on directories under those specified in CDPATH.
 #
diff --git a/contrib/autorpm b/contrib/autorpm
new file mode 100644
index 0000000..ad55395
--- /dev/null
+++ b/contrib/autorpm
@@ -0,0 +1,16 @@
+# autorpm(8) completion
+#
+have autorpm &&
+_autorpm()
+{
+	local cur
+
+	COMPREPLY=()
+	cur=`_get_cword`
+
+	COMPREPLY=( $( compgen -W '--notty --debug --help --version \
+				   auto add fullinfo info help install list \
+				   remove set' -- $cur ) )
+
+} &&
+complete -F _autorpm autorpm

-- 
bash-completion



More information about the Bash-completion-commits mailing list