diff options
Diffstat (limited to 'Completion/Unix/Command/_tty')
-rw-r--r-- | Completion/Unix/Command/_tty | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_tty b/Completion/Unix/Command/_tty new file mode 100644 index 000000000..838975098 --- /dev/null +++ b/Completion/Unix/Command/_tty @@ -0,0 +1,18 @@ +#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 |