From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21179 invoked by alias); 16 Sep 2011 21:58:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16377 Received: (qmail 7287 invoked from network); 16 Sep 2011 21:58:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at polanet.pl designates 193.34.52.2 as permitted sender) Date: Fri, 16 Sep 2011 23:58:14 +0200 From: Tomasz Pala To: zsh-users@zsh.org Subject: Re: Completion lists Message-ID: <20110916215814.GA11834@polanet.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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