1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00
zsh/Completion/Builtins/_sched
2000-03-23 04:19:26 +00:00

23 lines
491 B
Text

#compdef sched
local expl lines disp
if [[ CURRENT -eq 2 ]]; then
if compset -P -; then
_wanted -C - jobs || return 1
lines=(${(f)"$(sched)"})
if zstyle -T ":completion:${curcontext}:jobs" verbose; then
disp=( -ld lines )
else
disp=()
fi
[[ -z $lines ]] || _loop jobs expl 'scheduled jobs' \
compadd "$disp[@]" - {1..$#lines}
return
else
_message 'time specification'
return 1
fi
fi
compset -n 3 && _normal