blob: e5ab4852fe7e7b84c983117fd2aaa2794d5f061e (
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
26
|
# grpck(8) completion -*- shell-script -*-
_comp_cmd_grpck()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
local noargopts='!(-*|*[R]*)'
# shellcheck disable=SC2254
case $prev in
--root | -${noargopts}R)
_comp_compgen_filedir
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_help || _comp_compgen_usage
return
fi
_comp_compgen_filedir
} &&
complete -F _comp_cmd_grpck grpck
# ex: filetype=sh
|