|
Server : LiteSpeed System : Linux srv45672493.ultasrv.net 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64 User : dewab7604 ( 1100) PHP Version : 8.1.33 Disable Function : NONE Directory : /usr/share/bash-completion/completions/ |
Upload File : |
# Linux insmod(8) completion -*- shell-script -*-
_insmod()
{
local cur prev words cword
_init_completion || return
# do filename completion for first argument
if ((cword == 1)); then
_filedir '@(?(k)o?(.[gx]z))'
else # do module parameter completion
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))
fi
} &&
complete -F _insmod insmod insmod.static
# ex: filetype=sh