1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-02 13:26:03 +02:00
zsh/Completion/Zsh/Command/_sched

22 lines
466 B
Plaintext
Raw Normal View History

2001-04-02 13:30:01 +02:00
#compdef sched
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 job' \
2001-04-02 13:30:01 +02:00
compadd "$disp[@]" - {1..$#lines}
return
else
_message -e times 'time specification'
2001-04-02 13:30:01 +02:00
return 1
fi
fi
compset -n 3 && _normal