summaryrefslogtreecommitdiffstats
path: root/completions/pwdx
blob: ba460f2fafdca76ea9e39b94228bb9f0d4cfc7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pwdx(1) completion                                       -*- shell-script -*-

_comp_cmd_pwdx()
{
    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 ||
            _comp_compgen -- -W '-V'
    else
        _comp_compgen_pids
    fi
} &&
    complete -F _comp_cmd_pwdx pwdx

# ex: filetype=sh