diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-03 13:16:46 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-03 13:16:46 +0000 |
commit | 7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56 (patch) | |
tree | 9bb85bcd27410e1b752c8550f487165d71dc8aca /Completion/User/_hosts | |
parent | b09922bb063ddf44c7850b182fec4795fbe1ae90 (diff) | |
download | zsh-7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56.tar.gz zsh-7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56.tar.xz zsh-7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56.zip |
zsh-3.1.5-pws-25 dot-zsh-199907031715
Diffstat (limited to 'Completion/User/_hosts')
-rw-r--r-- | Completion/User/_hosts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/User/_hosts b/Completion/User/_hosts index 911cea03b..a0aca0a62 100644 --- a/Completion/User/_hosts +++ b/Completion/User/_hosts @@ -1,3 +1,5 @@ -#compdef ftp ncftp ping rwho rup xping traceroute nslookup +#compdef ftp ncftp ping rwho rup xping traceroute nslookup telnet -compgen -k hosts +: ${(A)hosts:=${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} + +compgen -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' -k hosts |