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

David Paleino d.paleino at gmail.com
Fri Jun 5 19:44:16 UTC 2009


The following commit has been merged in the master branch:
commit 4c9dcbb836bd00921f6fb4033449240fd8c38da0
Author: David Paleino <d.paleino at gmail.com>
Date:   Fri Jun 5 21:44:02 2009 +0200

    Split pineaddr completion to contrib/pine

diff --git a/CHANGES b/CHANGES
index 29aff01..f20c59f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -32,6 +32,7 @@ bash-completion (1.x)
   * Split gcc completion to contrib/gcc
   * Split dselect completion to contrib/dselect
   * Split cardctl completion to contrib/cardctl
+  * Split pineaddr completion to contrib/pine
 
   [ Ville Skyttä ]
   * Split yum and yum-arch completion into contrib/yum.
diff --git a/Makefile.am b/Makefile.am
index a36506f..7265efe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,6 +87,7 @@ bashcomp_DATA = contrib/ant \
 		contrib/openssl \
 		contrib/p4 \
 		contrib/perl \
+		contrib/pine \
 		contrib/pkg-config \
 		contrib/postgresql \
 		contrib/postfix \
diff --git a/bash_completion b/bash_completion
index 3e091e8..ff31893 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1443,21 +1443,6 @@ for i in env netstat seq uname units wget; do
 done
 unset i
 
-# PINE address-book completion
-#
-have pine &&
-_pineaddr()
-{
-	local cur
-
-	COMPREPLY=()
-	cur=`_get_cword`
-
-	COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \
-			-- $cur ) )
-} &&
-complete -F _pineaddr $default pine
-
 _configure_func()
 {
 	local cur
diff --git a/contrib/pine b/contrib/pine
new file mode 100644
index 0000000..50e7de5
--- /dev/null
+++ b/contrib/pine
@@ -0,0 +1,14 @@
+# PINE address-book completion
+#
+have pine &&
+_pineaddr()
+{
+	local cur
+
+	COMPREPLY=()
+	cur=`_get_cword`
+
+	COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \
+			-- $cur ) )
+} &&
+complete -F _pineaddr $default pine

-- 
bash-completion



More information about the Bash-completion-commits mailing list