diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-30 16:12:35 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-30 16:12:35 +0200 |
commit | 20a92b857e7adf9be1a6afd3249b34c0da0e5c1b (patch) | |
tree | b5adab8845318c2860b799c87894f9e4fac20152 /Completion/Unix/Command/_dig | |
parent | bdf09270be2c5fb8a61b9e7f6bd0d0c194342000 (diff) | |
download | zsh-20a92b857e7adf9be1a6afd3249b34c0da0e5c1b.tar.gz zsh-20a92b857e7adf9be1a6afd3249b34c0da0e5c1b.tar.xz zsh-20a92b857e7adf9be1a6afd3249b34c0da0e5c1b.zip |
42570: new completion for drill and factor out DNS type completion
Diffstat (limited to 'Completion/Unix/Command/_dig')
-rw-r--r-- | Completion/Unix/Command/_dig | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Completion/Unix/Command/_dig b/Completion/Unix/Command/_dig index a4e175808..5feb71fef 100644 --- a/Completion/Unix/Command/_dig +++ b/Completion/Unix/Command/_dig @@ -1,14 +1,5 @@ #compdef dig -_dns_types() { - local expl - _description dns-types expl 'DNS type' - compadd "$@" "$expl[@]" -M 'm:{a-z}={A-Z}' \ - ANY A AAAA AFSDB APL AXFR CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME \ - DNSKEY DS HIP HINFO IPSECKEY IXFR KEY KX LOC MX NAPTR NS NSEC NSEC3 \ - NSEC3PARAM OPT PTR RRSIG RP SIG SOA SPF SRV SSHFP TA TKEY TLSA TSIG TXT -} - local curcontext="$curcontext" state line expl local -a alts args [[ -prefix + ]] && args=( @@ -66,7 +57,7 @@ local -a alts args '*+'{no,}'besteffort[try to parse even malformed messages]' '*+'{no,}'dnssec[request DNSSEC records]' '*+'{no,}'sigchase[chase DNSSEC signature chains]' - '*+trusted-key=[specify file conrtaing trusted kets]:file:_files' + '*+trusted-key=[specify file containing trusted keys]:file:_files' '*+'{no,}'topdown[do DNSSEC validation in top down mode]' '*+'{no,}'nsid[include EDNS name server ID request in query]' '*+'{no,}'ttlid[display the TTL whening printing the record]' |