15 lines
330 B
Bash

# Linux rmmod(8) completion. -*- shell-script -*-
# This completes on a list of all currently installed kernel modules.
_rmmod()
{
local cur prev words cword
_init_completion || return
_installed_modules "$cur"
return 0
} &&
complete -F _rmmod rmmod
# ex: ts=4 sw=4 et filetype=sh