summaryrefslogtreecommitdiff
path: root/etc/completion
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-12 15:58:38 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-12 15:58:38 +0100
commitbab975d8c9753d2bd1aac62aeab15dc1376babdd (patch)
tree1965b685efb1135fb5087c508661a9a61365a910 /etc/completion
parentadf030fab041357ad33266e6429d8c099878015f (diff)
Added $hosts array parameter to abstract things
Diffstat (limited to 'etc/completion')
-rw-r--r--etc/completion6
1 files changed, 5 insertions, 1 deletions
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