summaryrefslogtreecommitdiff
path: root/completions/newgrp
blob: ddcd79e86c137dc24ef8361883f73e9514d55888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# newgrp(1) completion                                     -*- shell-script -*-

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

    if [[ "$cur" == "-" ]]; then
        COMPREPLY=( - )
    else
        _allowed_groups "$cur"
    fi
} &&
complete -F _newgrp newgrp

# ex: ts=4 sw=4 et filetype=sh