diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 03:00:30 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 03:00:30 +0000 |
commit | 2f9472e08bb08bdf2141062f40a39f58d68f072a (patch) | |
tree | 2944a6a475e7aae434db1a96a35f035f701a9b63 /Completion/User | |
parent | 161f00900461755a9244a5a80a95bb5899e23880 (diff) | |
download | zsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.tar.gz zsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.tar.xz zsh-2f9472e08bb08bdf2141062f40a39f58d68f072a.zip |
zsh-workers/7890
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_hosts | 3 |
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[@]" |