mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
__fish_complete_blockdevice: Default to /dev
This gives all the blockdevices for `mount ` Fixes #7543.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user