Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion and dircolors problem
- X-seq: zsh-users 13506
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Completion and dircolors problem
- Date: Sun, 30 Nov 2008 17:30:20 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pC8F8mzoHMLKGQZFv+N/yvCRfDN3CYj5W6i6vsnOXgk=; b=vnEoM7z3m8/I6bbQNt9Gu3pg/e6Ap4RjDklwmjrN8/wsbv2FCHSfUYl+iWcharCMRJ ZV4O+k0ab+YmeEdR6FNH1h6dd0PZA6HJ6L0DsSmn4+5dtm0+dsgsK8aZQAvkJpdj9XQG 58bczrAmSXgdl1IDmZsR6HXhObcPlKHS6F+/U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=mPQCqD/r8+Diw4Fw/ksA/8rKvnXayM+3p/ZoxTNpZ7hiG68x+5xZP3y00M7szF4HZW IECzV0ROYI7ACZVOcy2kQls2IhNIMnTzayebxoKirKRTi0ggiNgwg6hGrCz7iNZZMXLc pAOPaAk8xmxTd91rgRTaNdHulAwR8m1ABWYPs=
- In-reply-to: <ggue8n$j7e$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <ggrrv4$6ol$1@xxxxxxxxxxxxx> <20081130004457.237f7944@pws-pc> <ggsq3v$3ie$1@xxxxxxxxxxxxx> <081129174552.ZM5986@xxxxxxxxxxxxxxxxxxxxxx> <ggt03e$h4f$1@xxxxxxxxxxxxx> <081129202218.ZM6226@xxxxxxxxxxxxxxxxxxxxxx> <ggue8n$j7e$1@xxxxxxxxxxxxx>
2008/11/30 Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>:
> 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?!
You can filter out the ln with an expression like
${${(s.:.)LS_COLORS}%ln=*}, then you probably want to add an explicit
'ln=0;36' too after. Ie,
zstyle ':completion:*' list-colors ${(s.:.)${LS_COLORS}%ln=*} 'ln=00;36'
Heh, I think I found a bug in ls, ls -l *(@) shows only broken links,
while ls -ld *(@) shows the correct colors, when I've set ln=target.
If you want to be fancy, you can make the above depend on $ZSH_VERSION
too, but it's probably easier to just remove it when you update zsh.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author