File: _mdls

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 (9 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#compdef mdls

# Note: The inconsistent use of the -o+ option variant here is deliberate
_arguments -s -S : \
  '*'{-n+,-name}'[restrict output to specified attribute]:attribute' \
  '(-p -plist)-nullMarker[specify string used for null values]:string' \
  '(-p -r -nullMarker -plist -raw)'{-p,-plist}'[output in XML plist format to specified file]:output file:_files' \
  '(-p -r -plist -raw)'{-r,-raw}'[print raw (NUL-delimited) attribute data]' \
  '*: :_files'