mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
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:
parent
cb58a30bf2
commit
8cc5b831b0
9
share/completions/insmod.fish
Normal file
9
share/completions/insmod.fish
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user