42 lines
862 B
Plaintext
Raw Normal View History

2009-09-14 21:32:06 +02:00
# 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" ) )
2009-09-14 21:32:06 +02:00
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" ) )
2009-09-14 21:32:06 +02:00
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" ) )
2009-09-14 21:32:06 +02:00
fi
} &&
complete -F _ipmitool ipmitool
# Local variables:
# mode: shell-script
# sh-basic-offset: 8
# sh-indent-comment: t
# indent-tabs-mode: t
# End:
# ex: ts=8 sw=8 noet filetype=sh