Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion lists
On Tue, Sep 13, 2011 at 12:54:01 +0000, Yuri DElia wrote:
> I would like to customize how the completion list is shown in zsh, I a way
> similar to how current emacs does it. I've looking around, but found nothing.
I think I've already posted this (in polish, but with screenshots):
http://jakilinux.org/aplikacje/konsola/zsh-automatyzacja-czynnosci/
In this case try:
setopt extended_glob
highlights='${PREFIX:+=(#bi)($PREFIX:t)(?)*==31=1;32}':${(s.:.)LS_COLORS}}
highlights2='=(#bi) #([0-9]#) #([^ ]#) #([^ ]#) ##*($PREFIX)*==1;31=1;35=1;33=1;32=}'
zstyle -e ':completion:*' list-colors 'if [[ $words[1] != kill && $words[1] != strace ]]; then reply=( "'$highlights'" ); else reply=( "'$highlights2'" ); fi'
unset highlights
--
Tomasz Pala <gotar@xxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author