mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
9 lines
396 B
Fish
9 lines
396 B
Fish
# Completions for the FreeBSD `kldload` kernel module load utility
|
|
|
|
# Only attempt to match a local file if there isn't a match in /boot/kernel,
|
|
# as odds are that is the desired source.
|
|
complete -c kldload -xa "(
|
|
set results (find /boot/kernel -depth 1 -iname (commandline -ct)'*.ko' | sed 's@.*/@@g;s/\.ko//');
|
|
set -q results[1]; and printf '%s\n' $results;
|
|
or __fish_complete_suffix .ko
|
|
)"
|