diff options
Diffstat (limited to 'Completion/Unix/Command/_script')
-rw-r--r-- | Completion/Unix/Command/_script | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_script b/Completion/Unix/Command/_script index 7a3960be0..25f8ea35f 100644 --- a/Completion/Unix/Command/_script +++ b/Completion/Unix/Command/_script @@ -47,7 +47,12 @@ case $OSTYPE in '-q[be quiet: suppress display of starting and ending lines]' '(-a -r -k)-d[suppress sleeps when playing back a session]' '(-a -r -k -t)-p[play back a recorded session]' - '(-d -p)-r[record a session with input, output and timing data]' + '(-d -p -T)-r[record a session with input, output and timing data]' + ) + ;| + darwin*|netbsd*|freebsd*) + args+=( + '-e[return exit status of the child process]' ) ;| netbsd*|openbsd*) @@ -55,12 +60,18 @@ case $OSTYPE in '-c[run specified command instead of a shell]:command:_cmdstring' ) ;| + darwin*|freebsd*) + args+=( + '(-a -r -k -t)-T[play back a recorded session, reporting only timestamps]: :_date_formats' + ) + ;| netbsd*) args+=( '-f[flush output after each write]' ) ;| freebsd*) args+=( '-f[use filemon(4)]' + '-w[forward terminal size changes on SIGWINCH]' ) ;| darwin*|dragonfly*|freebsd*) @@ -68,11 +79,9 @@ case $OSTYPE in '-F[send output to specified named pipe]:fifo:_files -g "*(p)"' '-t+[specify interval of data flushing]:interval (seconds)' '-k[log keys sent to the program as well as output]' - '*:::arguments: _normal' + '*:::arguments: _normal $service' ) ;| - darwin*|freebsd*) - ;| *) args+=( '(-p -d)-a[append output]' |