about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-17 03:00:30 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-17 03:00:30 +0000
commit2f9472e08bb08bdf2141062f40a39f58d68f072a (patch)
tree2944a6a475e7aae434db1a96a35f035f701a9b63 /Completion/User
parent161f00900461755a9244a5a80a95bb5899e23880 (diff)
downloadzsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.tar.gz
zsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.tar.xz
zsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.zip
zsh-workers/7890
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_hosts3
1 files changed, 3 insertions, 0 deletions
diff --git a/Completion/User/_hosts b/Completion/User/_hosts
index 9f5a39cca..bbc1e88b2 100644
--- a/Completion/User/_hosts
+++ b/Completion/User/_hosts
@@ -4,5 +4,8 @@ local expl
 
 : ${(A)hosts:=${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
 
+# Let the user add her own hosts in if she wants
+hosts=( $hostnames $hosts )
+
 _description expl host
 compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" "$expl[@]" - "$hosts[@]"