From bab975d8c9753d2bd1aac62aeab15dc1376babdd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 Nov 2008 15:58:38 +0100 Subject: Added $hosts array parameter to abstract things --- etc/completion | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/completion') diff --git a/etc/completion b/etc/completion index f5f94df..8671712 100644 --- a/etc/completion +++ b/etc/completion @@ -31,7 +31,11 @@ unset char zstyle ':completion:*:*:kill:*' menu yes zstyle ':completion:*:*:(todo|td*):*:items' menu yes -_hosts() { compadd derf.homelinux.org kraftwerk saviour kappa nemesis aneurysm;} +function _hosts { + typeset expl + _wanted host expl 'host name' \ + compadd $hosts +} if [[ -r $compdump ]] { compinit -C -d $compdump -- cgit v1.2.3