Add /sbin to $PATH when invoking lspci and lsusb.
This commit is contained in:
parent
f733e71e1f
commit
aa45595251
1
CHANGES
1
CHANGES
@ -118,6 +118,7 @@ bash-completion (1.x)
|
||||
rpmbuild -t*/--tarbuild completion.
|
||||
* Don't hardcode path to lsmod.
|
||||
* Fix sbcl file/dirname completion (Debian: #545743).
|
||||
* Add /sbin to $PATH when invoking lspci and lsusb.
|
||||
|
||||
[ Todd Zullinger ]
|
||||
* Make yum complete on filenames after install, deplist, update and upgrade
|
||||
|
@ -709,16 +709,16 @@ _count_args()
|
||||
#
|
||||
_pci_ids()
|
||||
{
|
||||
COMPREPLY=( ${COMPREPLY[@]:-} \
|
||||
$( compgen -W "$( lspci -n | awk '{print $3}')" -- $cur ) )
|
||||
COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W \
|
||||
"$( PATH="$PATH:/sbin" lspci -n | awk '{print $3}')" -- $cur ) )
|
||||
}
|
||||
|
||||
# This function completes on USB IDs
|
||||
#
|
||||
_usb_ids()
|
||||
{
|
||||
COMPREPLY=( ${COMPREPLY[@]:-} \
|
||||
$( compgen -W "$( lsusb | awk '{print $6}')" -- $cur ) )
|
||||
COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W \
|
||||
"$( PATH="$PATH:/sbin" lsusb | awk '{print $6}' )" -- $cur ) )
|
||||
}
|
||||
|
||||
# start of section containing completion functions for external programs
|
||||
|
Loading…
x
Reference in New Issue
Block a user