mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-30 11:38:41 -07:00
24 lines
523 B
Bash
24 lines
523 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
|
|
|
|
case $prev in
|
|
-h|--help|-V|--version)
|
|
return
|
|
;;
|
|
esac
|
|
|
|
if [[ $cur == -* ]]; then
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
|
return
|
|
fi
|
|
|
|
_installed_modules "$cur"
|
|
} &&
|
|
complete -F _rmmod rmmod
|
|
|
|
# ex: filetype=sh
|