about summary refs log tree commit diff
path: root/Completion/User/_hosts
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-12 03:38:15 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-12 03:38:15 +0000
commite644c39ba1688c6b9c30afc86e4bf25a8bd47d3c (patch)
tree8d9bb4274b4c5df3f8bc41a2ce1a108c87dd54a1 /Completion/User/_hosts
parent189116eac0f70862330cb9a6e49a7a85474ea7fa (diff)
downloadzsh-e644c39ba1688c6b9c30afc86e4bf25a8bd47d3c.tar.gz
zsh-e644c39ba1688c6b9c30afc86e4bf25a8bd47d3c.tar.xz
zsh-e644c39ba1688c6b9c30afc86e4bf25a8bd47d3c.zip
zsh-workers/7781
Diffstat (limited to 'Completion/User/_hosts')
-rw-r--r--Completion/User/_hosts2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/User/_hosts b/Completion/User/_hosts
index 2ea5169cb..9f5a39cca 100644
--- a/Completion/User/_hosts
+++ b/Completion/User/_hosts
@@ -5,4 +5,4 @@ local expl
 : ${(A)hosts:=${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
 
 _description expl host
-compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" "$expl[@]" - "${hosts[@]%:*}"
+compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" "$expl[@]" - "$hosts[@]"