1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 14:04:03 +01:00
zsh/Completion/Builtins/_sched

22 lines
458 B
Plaintext
Raw Normal View History

2000-04-01 22:43:43 +02:00
#compdef sched
1999-04-15 20:05:38 +02:00
2000-04-01 22:43:43 +02:00
local expl lines disp
if [[ CURRENT -eq 2 ]]; then
if compset -P -; then
lines=(${(f)"$(sched)"})
if zstyle -T ":completion:${curcontext}:jobs" verbose; then
disp=( -ld lines )
else
disp=()
fi
[[ -z $lines ]] || _wanted jobs expl 'scheduled jobs' \
2000-04-01 22:43:43 +02:00
compadd "$disp[@]" - {1..$#lines}
return
else
_message 'time specification'
return 1
fi
fi
compset -n 3 && _normal