about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-21 11:39:13 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-21 11:39:13 +0000
commit242c5843d7337cf9ce4bb39bed5d825fc0fe0411 (patch)
tree1568df01fe3e6d52bedbc09ae530781896a69658
parent5fb26f8385a5ea5bd33172af043b346faa148809 (diff)
downloadzsh-242c5843d7337cf9ce4bb39bed5d825fc0fe0411.tar.gz
zsh-242c5843d7337cf9ce4bb39bed5d825fc0fe0411.tar.xz
zsh-242c5843d7337cf9ce4bb39bed5d825fc0fe0411.zip
zsh-workers/8359
-rw-r--r--Completion/Builtins/_sched12
1 files changed, 10 insertions, 2 deletions
diff --git a/Completion/Builtins/_sched b/Completion/Builtins/_sched
index 83aa744ce..38bf44a59 100644
--- a/Completion/Builtins/_sched
+++ b/Completion/Builtins/_sched
@@ -1,7 +1,15 @@
 #compdef sched
 
+local expl lines
+
 if [[ CURRENT -eq 2 ]]; then
-  _message 'time specification'
-  return 1
+  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