2018-03-09 09:11:51 +01:00
|
|
|
#compdef grc
|
|
|
|
|
|
|
|
setopt localoptions extended_glob
|
|
|
|
|
|
|
|
local environ e cmd
|
|
|
|
local -a args
|
|
|
|
local -a _comp_priv_prefix
|
|
|
|
|
|
|
|
zstyle -a ":completion:${curcontext}:" environ environ
|
|
|
|
|
|
|
|
for e in "${environ[@]}"
|
|
|
|
do local -x "$e"
|
|
|
|
done
|
|
|
|
|
|
|
|
args=(
|
|
|
|
'(-e --stderr)'{-e,--stderr}'[redirect stderr; do not automatically redirect stdout]'
|
|
|
|
'(-s --stdout)'{-s,--stdout}'[redirect stdout; even with -e/--stderr]'
|
|
|
|
'(-c <name>--config=<name>)'{-c+,--config=-}'[use <name> as configuration file for grcat]:file:_files'
|
2019-01-11 19:05:09 +01:00
|
|
|
'--colour=-[colourize output]:colour:(on off auto)'
|
2018-03-09 09:11:51 +01:00
|
|
|
'(-h --help)'{-h,--help}'[display help message and exit]'
|
|
|
|
'--pty[run command in pseudotermnial (experimental)]'
|
|
|
|
'*::arguments:{ _normal }'
|
|
|
|
)
|
|
|
|
|
|
|
|
_arguments -s $args
|