From 6245d76e5765bff5797832819d13035643203d9b Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 30 Nov 2019 20:24:10 +0900 Subject: [PATCH] Move __fish_complete_lsusb into the completion script --- share/completions/lsusb.fish | 4 ++++ share/functions/__fish_complete_lsusb.fish | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 share/functions/__fish_complete_lsusb.fish 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