mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-10 16:31:27 +02:00
* Update tail to support -q/-v on NetBSD * Add several new functions (with one change needed to _hosts compdefs)
18 lines
436 B
Text
18 lines
436 B
Text
#compdef tty gtty
|
|
|
|
local -a args
|
|
|
|
if _pick_variant gnu='Free Soft' unix --version; then
|
|
args=(
|
|
'(-)--help[display help information]'
|
|
'(-)--version[display version information]'
|
|
'(-s --quiet --silent)'{-s,--quiet,--silent}'[suppress normal output]'
|
|
)
|
|
else
|
|
args=( '-s[suppress normal output]' )
|
|
[[ $OSTYPE == solaris* ]] && args+=(
|
|
"-l[display terminal's synchronous line number]"
|
|
)
|
|
fi
|
|
|
|
_arguments -s -S : $args
|