Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 52.15.35.129
# Linux insmod(8) completion -*- shell-script -*-
_insmod()
{
local cur prev words cword
_init_completion || return
# do filename completion for first argument
if [[ $cword -eq 1 ]]; then
_filedir '@(?(k)o?(.gz))'
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
|