about summary refs log tree commit diff
path: root/Completion/Darwin/Command/_caffeinate
blob: 9e361a5bd6ecbe55ac67144cde8f326462019149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#compdef caffeinate

_arguments -s -S : \
  '-d[prevent display sleep]' \
  '-i[prevent system idle sleep]' \
  '-m[prevent disk idle sleep]' \
  '-s[prevent system sleep (AC power only)]' \
  '-u[declare that user is active]' \
  '(:)-t[specify assertion timeout value]:timeout (seconds)' \
  '(:)-w[wait for specified PID]: :_pids' \
  '(-)1: : _command_names -e' \
  '(-)*::command argument'