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/_host | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Completion/Unix/Command/_host (limited to 'Completion/Unix/Command/_host') diff --git a/Completion/Unix/Command/_host b/Completion/Unix/Command/_host new file mode 100644 index 000000000..e1174d46c --- /dev/null +++ b/Completion/Unix/Command/_host @@ -0,0 +1,23 @@ +#compdef host + +# Note: This command is closely related to (and shares some options with) dig +_arguments -s -S -A '-*' : \ + '(: * -)-V[display version information]' \ + '(-6)-4[use IPv4 only]' \ + '(-4)-6[use IPv6 only]' \ + '(-v -t)-a[query for all record types or (with -l) list all zone records]' \ + '(-d -v)'{-d,-v}'[increase output verbosity]' \ + '-c+[specify query class]:query class:compadd -M "m\:{a-z}={A-Z}" - CH CS HS IN' \ + '-C[check SOA consistency]' \ + '-l[list zone records]' \ + '-N+[specify number of dots required to consider host name absolute]:number of dots' \ + '-r[query non-recursively (clear RD bit)]' \ + '-R+[specify number of retries for UDP queries]:number of retries [1]' \ + '-s[do not try next name server after SERVFAIL]' \ + '-t+[specify query type]: :_dns_types' \ + '-T[query via TCP]' \ + '*-m+[specify memory-usage debug flag]:debug flag:(record usage trace)' \ + '(-W)-w[disable query timeout (wait forever)]' \ + '(-w)-W+[specify query timeout]:query timeout (seconds) [5 (UDP), 10 (TCP)]' \ + '1: :_hosts' \ + '2::DNS server:_hosts' -- cgit 1.4.1