summaryrefslogtreecommitdiff
path: root/etc/completion
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-15 12:06:45 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-15 12:06:45 +0100
commit537ff91d705178d97ab15c981a96f533d80b36b2 (patch)
tree2d04b5026de2c1abf5af5bb1d9c58513f76881f4 /etc/completion
parent20cb4ba71c808470008bdd33c3b4f9364947cad7 (diff)
completion: beautified kill completion
Diffstat (limited to 'etc/completion')
-rw-r--r--etc/completion5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/completion b/etc/completion
index 91b9c47..5775421 100644
--- a/etc/completion
+++ b/etc/completion
@@ -32,6 +32,11 @@ unset char
zstyle ':completion:*:*:kill:*' menu yes
zstyle ':completion:*:*:(todo|td*):*:items' menu yes
+# fancy kill completion
+# source: http://madism.org/~madcoder/dotfiles/zsh/40_completion
+zstyle ':completion:*:processes' command 'ps -au$USER -o pid,time,cmd|grep -v "ps -au$USER -o pid,time,cmd"'
+zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)[ 0-9:]#([^ ]#)*=01;30=01;31=01;38'
+
# $hosts is set from the hosts package
zstyle -e ':completion:*' hosts 'reply=(${(k)hosts})'