zsh-workers
 help / color / mirror / code / Atom feed
f8ff8d1397030721c9e5a0d092aaa17c7d6561f6 blob 965 bytes (raw)

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
#compdef atrm atq at batch

local context state line expl
typeset -A opt_args

#todo (when extremely bored) make -l and -d do the atq and atrm completions
case $service in
atrm)
  _arguments \
    '-V[Print version number]' \
    '*:job number:->jobs'
  ;;
atq)
  _arguments \
    '-V[Print version number]' \
    '-q[Uses specified queue]:a-z+A-Z'
  ;;
at|batch)
  _arguments \
    - new-job \
      '-V[Print version number]' \
      '-q[Uses specified queue, uppercase acts as batch]:a-z+A-Z' \
      '-f[Read job from file rather than from stdin]:file:_files' \
      '-v[Show the time the job will be executed]' \
      '-m[Send mail even if there was no output]' \
      ':time:' \
    - atq \
      '-l[Alias for atq]' \
    - atrm \
      '-d[Alias for atrm]' \
    - show-job \
      '-c[Cat specified jobs to stdout]:*:job number:->jobs'
esac

case $state in
jobs)
  _wanted job expl 'job number' compadd $(_call_program job atq|cut -f 1 -d \	)
  ;;
esac
debug log:

solving f8ff8d1 ...
found f8ff8d1 in https://inbox.vuxu.org/zsh-workers/1306460224-19009-1-git-send-email-mikachu@gmail.com/

applying [1/1] https://inbox.vuxu.org/zsh-workers/1306460224-19009-1-git-send-email-mikachu@gmail.com/
diff --git a/Completion/Unix/Command/_at b/Completion/Unix/Command/_at
new file mode 100644
index 0000000..f8ff8d1

Checking patch Completion/Unix/Command/_at...
Applied patch Completion/Unix/Command/_at cleanly.

index at:
100644 f8ff8d1397030721c9e5a0d092aaa17c7d6561f6	Completion/Unix/Command/_at

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).