summarylogtreecommitdiffstats
path: root/completion-zsh
blob: 5750475ed881b5ef4dd22dac2e72d6c221e50f18 (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
#compdef catalyst_build_module

_catalyst_build_module() {
    local -a kernels

    kernels=($(find -L /usr/lib/modules -maxdepth 1 -mindepth 1 -type d ! -name "ext*" -printf "%f\n"))

    local -a commands

    commands=($kernels
        "help"
        "all"
        "remove"
        "remove_all"
        "ra"
    )

    if (( CURRENT == 2 )); then
        _describe -t commands 'commands' commands
    fi

    return 0
}

_catalyst_build_module