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

Re: Colored completion listings



Peter Stephenson wrote:

>> 1) zsh highlights broken symlinks as unbroken. but mi color is defined
>> and ls highlights it whith correct color.
> 
> My understanding of ls, and experiment, suggest you mean "or".
yes.

However, I've fixed "or".
Great.
I correctly understand, that 'mi' is unused in zsh? (But it described in
manpage)

>> 2) zsh highlights directories like test.jpg as jpeg file
>> color for directories is defined before *.jpg
> 
> Yes, the logic is the wrong way round.  File type tests from stat should
> come before extension tests.  (This can be kind of annoying in files from
> Windows that leave execute permissions all over the place but being
> compatible with ls is preferable.)
find -type f -exec chmod a-x {} \;  or  chmod a-x **/*(.)  (:

-- 
sergio



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