diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
commit | e6282df1155e8d9b08b2e518a452c1997973f1ce (patch) | |
tree | b0c8ed7e8512cc4397ae7df6d138ea66147565b3 /Completion/User/_whois | |
parent | 167b0ae3b98938f75287dcf2e112d41a03532c5f (diff) | |
download | zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.gz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.xz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.zip |
manual/8630
Diffstat (limited to 'Completion/User/_whois')
-rw-r--r-- | Completion/User/_whois | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Completion/User/_whois b/Completion/User/_whois index 2043cbd4e..1e0f7707c 100644 --- a/Completion/User/_whois +++ b/Completion/User/_whois @@ -112,7 +112,7 @@ _whois_setup () { } _whois_single () { - local state line expl + local context state line expl typeset -A opt_args local tmp host @@ -189,19 +189,25 @@ _whois_fwhois () { } _whois_hosts () { - compadd "$@" \ - -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' \ - - ${_whois_servers%:?} || _hosts "$@" + _tags any hosts && + compadd "$@" \ + -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' \ + - ${_whois_servers%:?} || _hosts "$@" } _whois_ports () { - compadd "$@" - whois || _ports "$@" + _tags any ports && compadd "$@" - whois || _ports "$@" } (( $+functions[_whois:whois.internic.net] )) || _whois:whois.internic.net () { if (( CURRENT == 1 )); then - compadd HELP DOMAIN HOST + local expl + + _tags any string || return 1 + + _description expl string + compadd "$expl[@]" HELP DOMAIN HOST else _message 'string' fi @@ -210,6 +216,11 @@ _whois:whois.internic.net () { (( $+functions[_whois:whois.nic.ad.jp] )) || _whois:whois.nic.ad.jp () { if (( CURRENT == 1 )); then + local expl + + _tags any string || return 1 + + _description expl string compadd HELP DOM NET HOST PERSON CONN COM else _message 'string' |