From 6226e81189e9e5202b8e8751b150838cd968b3e6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 20 Sep 2008 18:31:55 +0200 Subject: completion: Added program-specific settings --- etc/completion | 4 ++++ etc/completions/_devtodo | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/completion b/etc/completion index 6f47a36..5eaae9b 100644 --- a/etc/completion +++ b/etc/completion @@ -25,6 +25,10 @@ zstyle ':completion:*:warnings' format \ zstyle ':completion:*' group-name '' +# program-specific settings +zstyle ':completion:*:*:kill:*' menu yes +zstyle ':completion:*:*:(todo|td*):*:items' menu yes + _hosts() { compadd derf.homelinux.org kraftwerk saviour kappa nemesis aneurysm;} compinit -C -d var/cache/zsh/compdump diff --git a/etc/completions/_devtodo b/etc/completions/_devtodo index 0d33664..7e76051 100644 --- a/etc/completions/_devtodo +++ b/etc/completions/_devtodo @@ -81,7 +81,7 @@ function _index () { for i in $(todo $tdoptions --format display='%n '); do index+=${i}:$(todo $tdoptions --format display='%t' $i) done - _describe index index + _describe -t items index index } function _color () { -- cgit v1.2.3