2019-11-30 11:24:10 +00:00
|
|
|
function __fish_complete_lsusb
|
|
|
|
lsusb | awk -F[ :] '{ print $2 ":" $4 }'
|
|
|
|
end
|
|
|
|
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c lsusb -s v -l verbose -d "Increase verbosity (show descriptors)"
|
|
|
|
complete -x -c lsusb -s s -a '(__fish_complete_lsusb)' -d "Show only devices with specified device and/or bus numbers (in decimal)"
|
2021-02-28 11:12:57 +00:00
|
|
|
complete -c lsusb -s d -d "Show only devices with the given vendor and product ID numbers (in hexadecimal)"
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c lsusb -s D -l device -d "Selects which device lsusb will examine"
|
|
|
|
complete -c lsusb -s t -l tree -d "Dump the physical USB device hierarchy as a tree"
|
|
|
|
complete -c lsusb -s V -l version -d "Show version of program"
|
|
|
|
complete -c lsusb -s h -l help -d "Show usage and help"
|