mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
__fish_complete_blockdevice: Default to /dev
This gives all the blockdevices for `mount ` Fixes #7543.
This commit is contained in:
parent
425dabd6b1
commit
0fdef958b6
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue