summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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})'