completions/insmod: Add support for insmod command

This commit introduces a new completion script for the `insmod` command,
enabling Fish shell users to autocomplete file for `.ko` (kernel
module) files in the current directory.
This commit is contained in:
Li Chen 2024-04-03 20:49:23 +08:00
parent cb58a30bf2
commit 8cc5b831b0

View File

@ -0,0 +1,9 @@
function _insmod_complete
# List all .ko files in the current directory for completion.
for file in (ls *.ko)
echo $file
end
end
complete -c insmod -a '(_insmod_complete)' -f