about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-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[@]"