mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +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
|
function __fish_complete_blockdevice
|
||||||
set -l cmd (commandline -ct)
|
set -l cmd (commandline -ct)
|
||||||
test "" = "$cmd"
|
test "" = "$cmd"
|
||||||
and return
|
and set cmd /dev/
|
||||||
for f in $cmd*
|
for f in $cmd*
|
||||||
test -b $f
|
test -b $f
|
||||||
and printf "%s\t%s\n" $f "Block device"
|
and printf "%s\t%s\n" $f "Block device"
|
||||||
|
|
Loading…
Reference in a new issue