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

Re: Completion and dircolors problem



* Bart Schaefer (Sat, 29 Nov 2008 20:22:18 -0800)> 
> On Nov 30,  4:07am, Thorsten Kampe wrote:
> }
> } That's me in .zshrc: "eval $(dircolors -b ~/.dir_colors)" - and that 
> } works perfectly for "ls /bin" as well as "ls /bin/<TAB>". Only for links 
> } it does not work and only if "LINK target" is configured in 
> } ~/.dir_colors. If I set "LINK 00;31" for instance, everything is fine.
> 
> So what does
>     zstyle -L | grep list-colors
> look like?

zstyle ':completion:*:jobs' list-colors 'no=01;31'
zstyle ':completion:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*' list-colors 'no=00;37' 'bd=00;33' 'cd=00;33' 'di=
00;36' 'do=00;35' 'ex=01;32' 'pi=00;33' 'fi=00;37' 'ln=target' 'or=
00;31' 'ow=00;36' 'sg=01;37' 'su=01;37' 'so=00;35' 'st=01;36' 'tw=
01;36' '*.bz2=00;31' '*.gz=00;31' '*.msi=00;31' '*.sqx=00;31' '*.tar=
00;31' '*.tgz=00;31' '*.xpi=00;31' '*.zip=00;31' '*.bak=00;31' '*.conf=
01;36' '*.css=01;36' '*.ini=01;36' '*.reg=01;36' '*.xml=01;36' '*.abw=
01;37' '*.chm=01;37' '*.doc=01;37' '*.htm=01;37' '*.html=01;37' '*.pdf=
01;37' '*.rtf=01;37' '*.txt=01;37' '*.exe=01;32' '*.bmp=00;33' '*.gif=
00;33' '*.ico=00;33' '*.jpg=00;33' '*.png=00;33' '*.xpm=00;33' '*.lnk=
00;36' '*.url=00;36' '*.bat=01;36' '*.btm=01;36' '*.py=01;36' '*.pyc=
01;36' '*.pyo=01;36' '*.pyw=01;36' '*.sh=01;36' '*.zsh=01;36'
 
> And which version of zsh?  ln=target has been supported only since
> 2008-05-06, so 4.3.9 is the first non-"dev" release that handles it.

4.3.6. So this is expected?! As I said I don't set the list-colors 
manually but I let zsh read my LS_COLORS (tip from the user guide 
("list-colors ${(s.:.)LS_COLORS}")).

So if I understand it correctly the external command dircolors 
understands "LINK target" - while zsh does not ("ln=target") until 
4.3.9?!

Thorsten



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