[Bash-completion-commits] [SCM] bash-completion branch, master, updated. aa455952518937d47be8646b43d8d7147e237843
Ville Skyttä
ville.skytta at iki.fi
Sun Sep 20 15:34:12 UTC 2009
The following commit has been merged in the master branch:
commit aa455952518937d47be8646b43d8d7147e237843
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Sep 20 18:33:24 2009 +0300
Add /sbin to $PATH when invoking lspci and lsusb.
diff --git a/CHANGES b/CHANGES
index 0aa57db..b1722bf 100644
--- a/CHANGES
+++ b/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
diff --git a/bash_completion b/bash_completion
index 3b88f13..8b4021f 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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
--
bash-completion
More information about the Bash-completion-commits
mailing list