mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 14:52:46 +08:00
Move __fish_complete_lsusb into the completion script
This commit is contained in:
parent
b3291619f4
commit
6245d76e57
|
@ -1,3 +1,7 @@
|
|||
function __fish_complete_lsusb
|
||||
lsusb | awk -F[ :] '{ print $2 ":" $4 }'
|
||||
end
|
||||
|
||||
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)"
|
||||
complete -c lsusb -s d -d "Show only devices with the specified vendor and product ID numbers (in hexadecimal)"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
function __fish_complete_lsusb
|
||||
lsusb | awk -F[ :] '{ print $2 ":" $4 }'
|
||||
end
|
Loading…
Reference in New Issue
Block a user