diff --git a/share/completions/lsusb.fish b/share/completions/lsusb.fish index 4373b8e55..9ea781a58 100644 --- a/share/completions/lsusb.fish +++ b/share/completions/lsusb.fish @@ -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)" diff --git a/share/functions/__fish_complete_lsusb.fish b/share/functions/__fish_complete_lsusb.fish deleted file mode 100644 index b6814b29f..000000000 --- a/share/functions/__fish_complete_lsusb.fish +++ /dev/null @@ -1,3 +0,0 @@ -function __fish_complete_lsusb - lsusb | awk -F[ :] '{ print $2 ":" $4 }' -end