File: _grc

package info (click to toggle)
grc 1.13.1-1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 592 kB
  • sloc: python: 421; sh: 203; makefile: 34; sql: 31
file content (25 lines) | stat: -rw-r--r-- 710 bytes parent folder | download
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
#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'
  '--colour=-[colourize output]:colour:(on off auto)'
  '(-h --help)'{-h,--help}'[display help message and exit]'
  '--pty[run command in pseudotermnial (experimental)]'
  '*::arguments:{ _normal }'
)

_arguments -s $args