File: _mdutil

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie, trixie-proposed-updates
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (19 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#compdef mdutil

# @todo This isn't fully comprehensive, but it's unclear from the documentation
# how some of these options are meant to work together or what kind of arguments
# they expect

local -a volumes=( / /Volumes/*(N) )

_arguments -s -S : \
  '(-V)-a[apply to all volumes]' \
  '-d[disable Spotlight activity]' \
  '-E[erase and rebuild index]' \
  '-i[toggle indexing status]:indexing status:(on off)' \
  '-p[publish metadata]' \
  '-s[print indexing status]' \
  '(: -)-t[resolve files from specified file ID]:file ID, volume path, or device ID: :file ID' \
  "(-a)-V[apply to stores on specified volume]:volume:(${(j< >)${(@q-)volumes}})" \
  '-v[output verbosely]' \
  "*:volume:(${(j< >)${(@q-)volumes}})"