[Bash-completion-commits] [SCM] bash-completion branch, master, updated. b3f8e617ac7569a4c6bd3f3f6e6e3bc51d61d3f4
Guillaume Rousse
guillomovitch at zarb.org
Fri May 29 07:57:21 UTC 2009
The following commit has been merged in the master branch:
commit d9c7ffba6b817fe76bd6d271c2ad1b41fac6deb1
Author: Guillaume Rousse <guillomovitch at zarb.org>
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 <servilio at gmail.com>
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
More information about the Bash-completion-commits
mailing list