From 43247252ddeedcf3955b030f2c77064089581cb0 Mon Sep 17 00:00:00 2001 From: dana Date: Mon, 17 Dec 2018 14:49:33 -0600 Subject: 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) --- Completion/Unix/Command/_tty | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Completion/Unix/Command/_tty (limited to 'Completion/Unix/Command/_tty') 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 -- cgit 1.4.1