summaryrefslogtreecommitdiffstats
path: root/completions/pwck
blob: fa07b0e1d5442011228c027cff4c9b792771dfe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pwck(8) completion                                       -*- shell-script -*-

_pwck()
{
    local cur prev words cword
    _init_completion || return

    if [[ $cur == -* ]]; then
        local opts=$(_parse_help "$1")
        COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur"))
        return
    fi

    _filedir
} &&
    complete -F _pwck pwck

# ex: filetype=sh