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

Guillaume Rousse guillomovitch at zarb.org
Wed May 20 23:42:44 UTC 2009


The following commit has been merged in the master branch:
commit f66e16c4f0807cc373d6b9f79f2f14ae92f563e9
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date:   Thu May 21 01:26:28 2009 +0200

    split nslookup completion

diff --git a/Makefile.am b/Makefile.am
index 8acf564..5886034 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,7 @@ sysconf_DATA = bash_completion
 bashcompdir = $(sysconfdir)/bash_completion.d
 bashcomp_DATA = contrib/ant \
 		contrib/apache2ctl \
+		contrib/bind-utils \
 		contrib/bitkeeper \
 		contrib/bittorrent \
 		contrib/bluez-utils \
diff --git a/bash_completion b/bash_completion
index 748bb2d..1ebb78d 100644
--- a/bash_completion
+++ b/bash_completion
@@ -3420,21 +3420,6 @@ _root_command()
 }
 complete -F _root_command $filenames sudo fakeroot really gksudo gksu kdesudo
 
-have nslookup &&
-_nslookup()
-{
-	local cur
-
-	COMPREPLY=()
-	cur=${COMP_WORDS[COMP_CWORD]#-}
-
-	COMPREPLY=( $( compgen -P '-' -W 'all class= debug d2 domain= \
-			       srchlist= defname search port= querytype= \
-			       type= recurse retry root timeout vc \
-			       ignoretc' -- $cur ) )
-} &&
-complete -F _nslookup nslookup
-
 _longopt()
 {
 	local cur prev
diff --git a/contrib/bind-utils b/contrib/bind-utils
new file mode 100644
index 0000000..6cc5b06
--- /dev/null
+++ b/contrib/bind-utils
@@ -0,0 +1,19 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for nslookup
+
+have nslookup &&
+_nslookup()
+{
+	local cur
+
+	COMPREPLY=()
+	cur=${COMP_WORDS[COMP_CWORD]#-}
+
+	COMPREPLY=( $( compgen -P '-' -W 'all class= debug d2 domain= \
+			       srchlist= defname search port= querytype= \
+			       type= recurse retry root timeout vc \
+			       ignoretc' -- $cur ) )
+} &&
+complete -F _nslookup nslookup

-- 
bash-completion



More information about the Bash-completion-commits mailing list