summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-20 18:31:55 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-20 18:36:12 +0200
commit6226e81189e9e5202b8e8751b150838cd968b3e6 (patch)
tree0deddc1c686a2e717b4279079a2855de3cf9deab
parentfdb10e37ea2cb2345f9948f287482b678ec5029e (diff)
completion: Added program-specific settings
-rw-r--r--etc/completion4
-rw-r--r--etc/completions/_devtodo2
2 files changed, 5 insertions, 1 deletions
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 () {