blob: a57a206c9732807ab87fcf926faf8ff630774343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Linux rmmod(8) completion. -*- shell-script -*-
# This completes on a list of all currently installed kernel modules.
_comp_cmd_rmmod()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
-h | --help | -V | --version)
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_help
return
fi
_comp_compgen_inserted_kernel_modules
} &&
complete -F _comp_cmd_rmmod rmmod
# ex: filetype=sh
|