1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-10 16:31:27 +02:00
zsh/Completion/Unix/Command/_tty
dana 43247252dd 43897: Add/update various completion functions
* Update tail to support -q/-v on NetBSD
* Add several new functions (with one change needed to _hosts compdefs)
2018-12-17 14:49:33 -06:00

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