1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

35274: completion: Add FreeBSD's watch(1)

Review-by: Oliver Kiddle
This commit is contained in:
Daniel Shahaf 2015-07-24 16:43:14 +00:00
parent 679d52fcca
commit d470453d76
3 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2015-07-26 Daniel Shahaf <d.s@daniel.shahaf.name>
* 35274 (plus tweaks): Completion/BSD/Command/_watch-snoop
Completion/Unix/Command/_watch: completion: Add FreeBSD's
watch(1)
2015-07-26 Oliver Kiddle <opk@zsh.org>
* 35901: Completion/X/Type/_x_font: complete full names as removing

View file

@ -0,0 +1,13 @@
#autoload
# watch [-cinotW] [-f snpdev] [tty]
_arguments -w -S -s : \
"-c[reconnect on close]" \
"-f:snp(4) device: " \
"-i[force interactive mode even when stdout is not a tty]" \
"-n[disable the ability to switch the watched tty interactively]" \
"-o[reconnect on overflow]" \
"-t[print date and time at start]" \
"-W[allow write access to observed tty]" \
":tty device:_ttys -D"

View file

@ -0,0 +1,9 @@
#compdef watch
# watch(1) has completely different semantics on freebsd compared to linux, hence:
case $OSTYPE in
(freebsd*|dragonfly*) _watch-snoop "$@";;
(*) _default;;
esac
# NOTREACHED