summary refs log tree commit diff
path: root/Completion/User/_gs
blob: 8ecd995701ac69f178b10fb332ec7012a40ed003 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#compdef gs ghostscript

if compset -N --; then
  if [[ CURRENT -eq 1 ]]; then
    _ps
  else
    _message 'userdict ARGUMENTS'
    return 1
  fi
else
  _x_options \
    -q \
    '-g-:device size (<width>x<height>):' \
    '-r-:resolution (<val> or <x>x<y>):' \
    '-I:search paths:_dir_list' \
    \*-{d,D}'-:def: _gs_name -d' \
    \*-{s,S}'-:def: _gs_name -s' \
    '*:PostScript file:_ps'
fi