diff options
author | dana <dana@dana.is> | 2018-12-17 14:49:33 -0600 |
---|---|---|
committer | dana <dana@dana.is> | 2018-12-17 14:49:33 -0600 |
commit | 43247252ddeedcf3955b030f2c77064089581cb0 (patch) | |
tree | 1775341f8fb89fdd992609c448a9d1c4d6bbf4d2 /Completion/Unix/Command/_tty | |
parent | f8864ac0c8bf2bbe9af9ed70973d7f9fd37d38b2 (diff) | |
download | zsh-43247252ddeedcf3955b030f2c77064089581cb0.tar.gz zsh-43247252ddeedcf3955b030f2c77064089581cb0.tar.xz zsh-43247252ddeedcf3955b030f2c77064089581cb0.zip |
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)
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 |