Files
fish-shell/share/functions/__fish_complete_blockdevice.fish
Johannes Altmanninger a53db72564 Mark private functions that don't need localization
See the next commit.

Part of #11833
2025-09-30 11:47:26 +02:00

15 lines
362 B
Fish

# localization: skip(private)
#
# Helper function for completions that need to enumerate block devices.
function __fish_complete_blockdevice
set -l cmd (commandline -ct)
test -z "$cmd"
and set cmd /dev/
for f in $cmd*
test -b $f
and printf "%s\t%s\n" $f "Block device"
test -d $f
and printf "%s\n" $f/
end
end