From d60f9f2fd3f9b98b7f5b6996c2358a1e40c60939 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 19 Nov 2008 16:48:28 +0100 Subject: completion: Avoid redefining _hosts --- etc/completion | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'etc/completion') 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 -- cgit v1.2.3