summaryrefslogtreecommitdiff
path: root/completions/rmmod
blob: 50dd982cf662651e519ab176e66994ba63ff59b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Linux rmmod(8) completion. 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

# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh