The following commit has been merged in the master branch:
commit d9c7ffba6b817fe76bd6d271c2ad1b41fac6deb1
Author: Guillaume Rousse <[email protected]>
Date:   Wed May 27 18:27:15 2009 +0200

    split sysctl completion

diff --git a/Makefile.am b/Makefile.am
index 37fa7d6..4b0b73b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -85,6 +85,7 @@ bashcomp_DATA = contrib/ant \
                contrib/strace \
                contrib/_subversion \
                contrib/svk \
+               contrib/sysctl \
                contrib/tar \
                contrib/unace \
                contrib/unrar \
diff --git a/bash_completion b/bash_completion
index 5feb765..7d41359 100644
--- a/bash_completion
+++ b/bash_completion
@@ -4821,22 +4821,6 @@ _id()
 } &&
 complete -F _id id
 
-# sysctl(8) completion
-#
-have sysctl &&
-_sysctl()
-{
-       local cur
-
-       COMPREPLY=()
-       cur=`_get_cword`
-
-       COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- $cur ) )
-
-       return 0
-} &&
-complete -F _sysctl sysctl
-
 # update-rc.d(8) completion
 #
 # Copyright (C) 2004 Servilio Afre Puentes <[email protected]>
diff --git a/contrib/sysctl b/contrib/sysctl
new file mode 100644
index 0000000..516fcc1
--- /dev/null
+++ b/contrib/sysctl
@@ -0,0 +1,18 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for sysctl
+
+have sysctl &&
+_sysctl()
+{
+       local cur
+
+       COMPREPLY=()
+       cur=`_get_cword`
+
+       COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- $cur ) )
+
+       return 0
+} &&
+complete -F _sysctl sysctl

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to