[Bash-completion-commits] [SCM] bash-completion branch, master, updated. c4b81f782dc8a0bcf91d40752df2d294ce0ba4c0
Guillaume Rousse
guillaume at oberkampf.msr-inria.inria.fr
Mon Sep 14 19:35:00 UTC 2009
The following commit has been merged in the master branch:
commit 6c62b8fb3200ef7f925093a039554d81dcd09c64
Author: Guillaume Rousse <guillaume at oberkampf.msr-inria.inria.fr>
Date: Mon Sep 14 21:32:06 2009 +0200
initial import
diff --git a/contrib/ipmitool b/contrib/ipmitool
new file mode 100644
index 0000000..57b8c20
--- /dev/null
+++ b/contrib/ipmitool
@@ -0,0 +1,36 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for ipmitool
+
+have ipmitool &&
+_ipmitool()
+{
+ local cur prev
+
+ COMPREPLY=()
+ cur=`_get_cword`
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ case "$prev" in
+ -I)
+ COMPREPLY=( $( compgen -W 'open imb lan lanplus free' \
+ -- $cur ) )
+ return 0
+ ;;
+ esac
+
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-h -V -v -c -d -I -H -p -U -f -S -a \
+ -e -C -k -y -K -A -P -E -K -m -b -r -B -T -l -o -O' \
+ -- $cur ) )
+ else
+ COMPREPLY=( $( compgen -W 'raw i2c spd lan chassis power event \
+ mc sdr sensor fru gendev sel pef sol tsol isol user \
+ channel session sunoem kontronoem picmg fwum firewall \
+ exec set hpm ekanalyzer' -- $cur ) )
+ fi
+
+} &&
+complete -F _ipmitool ipmitool
--
bash-completion
More information about the Bash-completion-commits
mailing list