mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-01-27 19:44:08 +00:00
19 lines
445 B
Plaintext
19 lines
445 B
Plaintext
#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
|