From 857648bfb0c1898c855d1cea61e1aeab266c2c5f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 8 Mar 2011 11:05:18 +0100 Subject: more completions, taken from zshrc.grml --- .zsh/zshrc/20_compsys | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to '.zsh/zshrc/20_compsys') 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 -- cgit v1.2.3-54-g00ecf