__fish_complete_blockdevice: Default to /dev

This gives all the blockdevices for `mount `

Fixes #7543.
This commit is contained in:
Fabian Homborg 2020-12-11 22:42:59 +01:00
parent 425dabd6b1
commit 0fdef958b6

View file

@ -2,7 +2,7 @@
function __fish_complete_blockdevice
set -l cmd (commandline -ct)
test "" = "$cmd"
and return
and set cmd /dev/
for f in $cmd*
test -b $f
and printf "%s\t%s\n" $f "Block device"