blob: 29f1cd32470c70f3f8108586a007908a42e69fa4 (
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
25
|
# catalyst_build_module completion
_arguments()
{
find -L /usr/lib/modules -maxdepth 1 -mindepth 1 -type d ! -name "ext*" -printf "%f\n"
echo "help"
echo "all"
echo "remove"
echo "remove_all"
echo "ra"
}
_catalyst_build_module()
{
COMPREPLY=()
local cur=${COMP_WORDS[COMP_CWORD]}
case $COMP_CWORD in
1)
COMPREPLY=( $(compgen -W "$(_arguments)" -- "$cur") )
return 0
;;
esac
} &&
complete -F _catalyst_build_module catalyst_build_module
|