fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
362 B14 linesraw
1# localization: skip(private)
2#
3# Helper function for completions that need to enumerate block devices.
4function __fish_complete_blockdevice
5    set -l cmd (commandline -ct)
6    test -z "$cmd"
7    and set cmd /dev/
8    for f in $cmd*
9        test -b $f
10        and printf "%s\t%s\n" $f "Block device"
11        test -d $f
12        and printf "%s\n" $f/
13    end
14end