Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Glob qualifiers not working in coloured completion listings



  Hi there.

  Look at this:

reddwarf:~/foo> zsh --version
zsh 4.3.4 (powerpc-apple-darwin9.0)
reddwarf:~/foo> ls
./  ../ d1/ d2
reddwarf:~/foo> ls -d d*(/)
d1/
reddwarf:~/foo> zstyle ':completion:*' list-colors "=d*=$colour[green]"
reddwarf:~/foo> ls -d d<TAB>
d1/  d2

[ both are green ]

reddwarf:~/foo> zstyle ':completion:*' list-colors "=d*(/)=$colour[green]"
reddwarf:~/foo> ls -d d<TAB>
d1/  d2

[ d1 isn't green! ]

So d*(/) matches what's expected when expanded as part of the execution
of ls -d, but not when used in list-colors.  Any ideas?

  Thanks in advance!

-- 
David Evans                                     David.Evans@xxxxxxxxxxxx
Research Associate                        http://www.cl.cam.ac.uk/~de239
Computer Laboratory, University of Cambridge



Messages sorted by: Reverse Date, Date, Thread, Author