From b9394b9599c2449a1f542979eba6c0dc51e13b21 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 14 Jan 2014 08:28:15 +0100 Subject: [PATCH] Rename __fish_complete_usb function. --- share/completions/lsusb.fish | 2 +- .../{__fish_complete_usb.fish => __fish_complete_lsusb.fish} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename share/functions/{__fish_complete_usb.fish => __fish_complete_lsusb.fish} (60%) diff --git a/share/completions/lsusb.fish b/share/completions/lsusb.fish index ec2a130a4..bbf013b03 100644 --- a/share/completions/lsusb.fish +++ b/share/completions/lsusb.fish @@ -1,5 +1,5 @@ complete -c lsusb -s v -l verbose --description "Increase verbosity (show descriptors)" -complete -x -c lsusb -s s -a '(__fish_complete_usb)' --description "Show only devices with specified device and/or bus numbers (in decimal)" +complete -x -c lsusb -s s -a '(__fish_complete_lsusb)' --description "Show only devices with specified device and/or bus numbers (in decimal)" complete -c lsusb -s d --description "Show only devices with the specified vendor and product ID numbers (in hexadecimal)" complete -c lsusb -s D -l device --description "Selects which device lsusb will examine" complete -c lsusb -s t -l tree --description "Dump the physical USB device hierarchy as a tree" diff --git a/share/functions/__fish_complete_usb.fish b/share/functions/__fish_complete_lsusb.fish similarity index 60% rename from share/functions/__fish_complete_usb.fish rename to share/functions/__fish_complete_lsusb.fish index a3df06a19..faf7ae5b2 100644 --- a/share/functions/__fish_complete_usb.fish +++ b/share/functions/__fish_complete_lsusb.fish @@ -1,3 +1,3 @@ -function __fish_complete_usb +function __fish_complete_lsusb lsusb | awk '{print $2 ":" $4}'| cut -c1-7 end