[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 3e1508e51e7ddc36c2bd55d914920443466ec959
Guillaume Rousse
guillaume at oberkampf.msr-inria.inria.fr
Mon Sep 14 19:45:36 UTC 2009
The following commit has been merged in the master branch:
commit a1ae571cea5fc39602ec8441048735728e59b638
Author: Guillaume Rousse <guillaume at oberkampf.msr-inria.inria.fr>
Date: Mon Sep 14 21:48:03 2009 +0200
initial import
diff --git a/Makefile.am b/Makefile.am
index bfedeff..d23e51e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,6 +53,7 @@ bashcomp_DATA = contrib/ant \
contrib/imagemagick \
contrib/info \
contrib/iptables \
+ contrib/ipmitool \
contrib/isql \
contrib/jar \
contrib/java \
diff --git a/contrib/resolvconf b/contrib/resolvconf
new file mode 100644
index 0000000..8264d76
--- /dev/null
+++ b/contrib/resolvconf
@@ -0,0 +1,26 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for resolvconf
+
+have resolvconf &&
+_resolvconf()
+{
+ local cur command
+
+ COMPREPLY=()
+ cur=`_get_cword`
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ case $prev in
+ -@(a|d))
+ _available_interfaces
+ return 0
+ ;;
+ esac
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-a -d -u' -- $cur ) )
+ fi
+} &&
+complete -F _resolvconf resolvconf
--
bash-completion
More information about the Bash-completion-commits
mailing list