mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-17 21:31:35 +01:00
18 lines
445 B
Text
18 lines
445 B
Text
#compdef tty gtty
|
|
|
|
local -a args
|
|
|
|
if _pick_variant gnu='(Free Soft|uutils)' 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
|