summaryrefslogtreecommitdiff
path: root/completions/ipmitool
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/ipmitool
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/ipmitool')
-rw-r--r--completions/ipmitool30
1 files changed, 15 insertions, 15 deletions
diff --git a/completions/ipmitool b/completions/ipmitool
index 281d9eac..8e2637c7 100644
--- a/completions/ipmitool
+++ b/completions/ipmitool
@@ -3,7 +3,7 @@
_ipmitool_singleline_help()
{
COMPREPLY=( $( compgen -W "$( $1 $2 2>&1 | \
- sed -ne 's/[,\r]//g' -e 's/^.*[Cc]ommands://p' )" -- "$cur" ) )
+ command sed -ne 's/[,\r]//g' -e 's/^.*[Cc]ommands://p' )" -- "$cur" ) )
}
_ipmitool()
@@ -13,53 +13,53 @@ _ipmitool()
case $prev in
-h|-V|-p|-U|-e|-k|-y|-P|-m|-b|-t|-B|-T|-l)
- return 0
+ return
;;
-d)
COMPREPLY=( $( compgen -W "$( \
command ls -d /dev/ipmi* /dev/ipmi/* /dev/ipmidev/* \
- 2>/dev/null | sed -ne 's/^[^0-9]*\([0-9]\{1,\}\)/\1/p' )" \
+ 2>/dev/null | command sed -ne 's/^[^0-9]*\([0-9]\{1,\}\)/\1/p' )" \
-- "$cur" ) )
- return 0
+ return
;;
-I)
COMPREPLY=( $( compgen -W "$( $1 -h 2>&1 | \
- sed -e '/^Interfaces:/,/^[[:space:]]*$/!d' \
+ command sed -e '/^Interfaces:/,/^[[:space:]]*$/!d' \
-ne 's/^[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*/\1/p' )" \
-- "$cur" ) )
- return 0
+ return
;;
-H)
_known_hosts_real "$cur"
- return 0
+ return
;;
-f|-S|-O)
_filedir
- return 0
+ return
;;
-C)
COMPREPLY=( $( compgen -W '{0..14}' -- "$cur" ) )
- return 0
+ return
;;
-L)
COMPREPLY=( $( compgen -W 'CALLBACK USER OPERATOR ADMINISTRATOR' \
-- "$cur" ) )
- return 0
+ return
;;
-A)
COMPREPLY=( $( compgen -W 'NONE PASSWORD MD2 MD5 OEM' -- "$cur" ) )
- return 0
+ return
;;
-o)
COMPREPLY=( $( compgen -W "$( $1 -o list 2>&1 | \
awk '/^[ \t]+/ { print $1 }' ) list" -- "$cur" ) )
- return 0
+ return
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h)' -- "$cur" ) )
- return 0
+ return
fi
# Find out command and subcommand
@@ -77,7 +77,7 @@ _ipmitool()
if [[ -z $cmd ]]; then
COMPREPLY=( $( compgen -W '${cmds[@]}' -- "$cur" ) )
- return 0
+ return
fi
# Command/subcommand completions
@@ -197,4 +197,4 @@ _ipmitool()
} &&
complete -F _ipmitool ipmitool
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh