diff --git a/share/completions/zpool.fish b/share/completions/zpool.fish index 933660100..fc93826c6 100644 --- a/share/completions/zpool.fish +++ b/share/completions/zpool.fish @@ -46,10 +46,7 @@ function __fish_zpool_list_available_vdevs if test $OS = 'Linux' find /dev -type b | string replace '/dev/' '' else if test $OS = 'FreeBSD' - for i in (camcontrol devlist | cut -d "(" -f 2 | cut -d "," -f 1) - set -l files /dev/* - string replace /dev/ '' -- $files | string match -r "^$i" - end + sysctl -an kern.disks | string split ' ' else if test $OS = 'SunOS' find /dev/dsk -type b | string replace '/dev/' '' end