summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-03-08 11:05:18 +0100
committerTobias Klauser <tklauser@distanz.ch>2011-03-08 11:05:18 +0100
commit857648bfb0c1898c855d1cea61e1aeab266c2c5f (patch)
tree4192f8ef262bd3f39c1332cf2e4bc965f3c3ad4a
parentbd6859c79e73053e0ff6efb6a2ce4f2e7904866a (diff)
more completions, taken from zshrc.grml
-rw-r--r--.zsh/zshrc/20_compsys22
1 files changed, 15 insertions, 7 deletions
diff --git a/.zsh/zshrc/20_compsys b/.zsh/zshrc/20_compsys
index 0bfdebd..cd3ae49 100644
--- a/.zsh/zshrc/20_compsys
+++ b/.zsh/zshrc/20_compsys
@@ -50,10 +50,10 @@ zstyle ':completion:*' cache-path $ZVARDIR/compcache
zstyle ':completion:*' completer _complete _ignored _match _correct _approximate
# allow cursor-key navigation through completion set
-zstyle ':completion:*:*:*:*' menu select
+zstyle ':completion:*:*:*:*' menu select
# use colours in completion lists and menus
-zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
# ignore working and backup copies, and compiled objects
zstyle ':completion:*:(all-|)files' ignored-patterns \
@@ -97,11 +97,19 @@ compdef _precommand gdb
compdef _precommand nohup
compdef _precommand strace
-zstyle ':completion:*' verbose yes
-zstyle ':completion:*:descriptions' format '%B%d%b'
-zstyle ':completion:*:messages' format '%d'
-zstyle ':completion:*:warnings' format 'no matches for: %d'
-zstyle ':completion:*' group-name ''
+zstyle ':completion:*' verbose yes
+zstyle ':completion:*:descriptions' format $'%{\e[0;31m%}completing %B%d%b%{\e[0m%}'
+zstyle ':completion:*:messages' format '%d'
+zstyle ':completion:*:warnings' format 'no matches for: %d'
+zstyle ':completion:*' group-name ''
+
+# complete manual by their section
+zstyle ':completion:*:manuals' separate-sections true
+zstyle ':completion:*:manuals.*' insert-sections true
+zstyle ':completion:*:man:*' menu yes select
+
+# provide .. as a completion
+zstyle ':completion:*' special-dirs ..
# #527301
zstyle :completion::complete:xmms2:\*:values list-grouped false