From c0d6a36596443daa4c708820230bab3d3caeb2c0 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:30:01 +0000 Subject: moved from Completion/Builtins/_sched --- Completion/Zsh/Command/_sched | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Completion/Zsh/Command/_sched (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Command/_sched b/Completion/Zsh/Command/_sched new file mode 100644 index 000000000..82b8a7c91 --- /dev/null +++ b/Completion/Zsh/Command/_sched @@ -0,0 +1,21 @@ +#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 jobs' \ + compadd "$disp[@]" - {1..$#lines} + return + else + _message 'time specification' + return 1 + fi +fi +compset -n 3 && _normal -- cgit 1.4.1