about summary refs log tree commit diff
path: root/Completion/Builtins/_sched
blob: 38bf44a5996de343d12964f84a17b93b053aa904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#compdef sched

local expl lines

if [[ CURRENT -eq 2 ]]; then
  if compset -P -; then
    lines=(${(f)"$(sched)"})
    _description expl 'scheduled jobs'
    [[ -z $lines ]] || compadd "$expl[@]" -ld lines - {1..$#lines}
  else
    _message 'time specification'
    return 1
  fi
fi
compset -n 3 && _normal