diff options
Diffstat (limited to 'Completion/Unix/Command/_timeout')
-rw-r--r-- | Completion/Unix/Command/_timeout | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_timeout b/Completion/Unix/Command/_timeout index 223059e4d..9c7f1a004 100644 --- a/Completion/Unix/Command/_timeout +++ b/Completion/Unix/Command/_timeout @@ -2,8 +2,8 @@ local args -if [[ $service = g* || $OSTYPE != *(freebsd|netbsd)* ]]; then - # GNU coreutils or DFly as opposed to Free/NetBSD implementation +if [[ $service = g* || $OSTYPE != *(freebsd|netbsd|openbsd)* ]]; then + # GNU coreutils or DFly as opposed to Free/Net/OpenBSD implementation args=( '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]' '(- *)--help[display usage information]' @@ -16,5 +16,5 @@ _arguments -S -A "-" $args \ "--foreground[don't propagate timeout to the command children]" \ '(-s --signal)'{-s,--signal}'[specify the signal to send on timeout]:signal:_signals' \ '(-k --kill-after)'{-k,--kill-after}'[followup first signal with SIGKILL if command persists after specified time]:time' \ - '1: :_guard "[0-9.]#([smhd]|)" duration' \ - '*:::command:_normal' + '1: :_numbers -f -u seconds duration :s:seconds m:minutes h:hours d:days' \ + '*:::command: _normal -p $service' |