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

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

    case $prev in
        -h|--help)
            return
            ;;
        -R|--root)
            _filedir -d
            return
            ;;
    esac

    COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
} &&
complete -F _vipw vipw vigr

# ex: filetype=sh