summaryrefslogtreecommitdiff
path: root/etc/completion
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-19 16:48:28 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-19 16:48:28 +0100
commitd60f9f2fd3f9b98b7f5b6996c2358a1e40c60939 (patch)
treedb24d95f8dc875dd7942b62ddb7231fc537e0ba5 /etc/completion
parent8f46cc3e6dcb46afa2408172b684e3c1d3aaf0a6 (diff)
completion: Avoid redefining _hosts
Diffstat (limited to 'etc/completion')
-rw-r--r--etc/completion6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/completion b/etc/completion
index 51a9a2b..d46ca49 100644
--- a/etc/completion
+++ b/etc/completion
@@ -31,11 +31,7 @@ unset char
zstyle ':completion:*:*:kill:*' menu yes
zstyle ':completion:*:*:(todo|td*):*:items' menu yes
-function _hosts {
- typeset expl
- _wanted host expl 'host name' \
- compadd ${(k)hosts}
-}
+zstyle -e ':completion:*' hosts 'reply=(${(k)hosts})'
if [[ -r $compdump ]] {
compinit -C -d $compdump