We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88152e commit ec907d9Copy full SHA for ec907d9
completions/ipmitool
@@ -19,11 +19,7 @@ _ipmitool()
19
local -a files
20
_comp_expand_glob files '/dev/ipmi* /dev/ipmi/* /dev/ipmidev/*'
21
((${#files[@]})) &&
22
- COMPREPLY=($(compgen -W "$(
23
- printf '%s\n' "${files[@]}" |
24
- command sed -ne 's/^[^0-9]*\([0-9]\{1,\}\)/\1/p'
25
- )" \
26
- -- "$cur"))
+ COMPREPLY=($(compgen -W '"${files[@]##*([^0-9])}"' -X '![0-9]*' -- "$cur"))
27
return
28
;;
29
-*I)
0 commit comments