zsh-users
 help / color / mirror / code / Atom feed
* why files do not follow LS_COLORS?
@ 2012-03-16 11:39 Leonardo Barbosa
  2012-03-16 18:07 ` Benjamin R. Haskell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Leonardo Barbosa @ 2012-03-16 11:39 UTC (permalink / raw)
  To: zsh-users

Hi,

I am using zsh and i trying to set "ls" colors like this. Files are
colored, but they do not follow the colors i set.  Curiously enough,
during file completion they do.
Any idea?

I am using OS X Lion

Thanks in advance

--L

export LS_COLORS='no=00:fi=00:di=05;33:ln=01;36:pi=40;33:
so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31 ;01:ex=01;32.tar

if ls --color &>/dev/null; then
LS_OPTIONS="--color" # gnu (linux)
else
LS_OPTIONS="-G" # mac
fi
export LS_OPTIONS

# ls aliases
alias ls='ls $LS_OPTIONS -F'


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why files do not follow LS_COLORS?
  2012-03-16 11:39 why files do not follow LS_COLORS? Leonardo Barbosa
@ 2012-03-16 18:07 ` Benjamin R. Haskell
  2012-03-16 21:20 ` Alex Satrapa
  2012-03-17 21:31 ` S. Cowles
  2 siblings, 0 replies; 5+ messages in thread
From: Benjamin R. Haskell @ 2012-03-16 18:07 UTC (permalink / raw)
  To: Leonardo Barbosa; +Cc: zsh-users

On Fri, 16 Mar 2012, Leonardo Barbosa wrote:

> Hi,
>
> I am using zsh and i trying to set "ls" colors like this. Files are 
> colored, but they do not follow the colors i set.  Curiously enough, 
> during file completion they do.  Any idea?
>
> I am using OS X Lion

LS_COLORS works during file completion only because Zsh uses that 
variable.  The external utility `ls` generally has LS_COLORS only on GNU 
systems, which doesn't include OSX.

osx-server$ man ls | grep -c LS_COLORS
0
linux-box$ man ls | grep -c LS_COLORS
1

-- 
Best,
Ben


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why files do not follow LS_COLORS?
  2012-03-16 11:39 why files do not follow LS_COLORS? Leonardo Barbosa
  2012-03-16 18:07 ` Benjamin R. Haskell
@ 2012-03-16 21:20 ` Alex Satrapa
  2012-03-17 21:31 ` S. Cowles
  2 siblings, 0 replies; 5+ messages in thread
From: Alex Satrapa @ 2012-03-16 21:20 UTC (permalink / raw)
  To: Leonardo Barbosa; +Cc: zsh-users

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

On 16 Mar 2012, at 22:39, Leonardo Barbosa wrote:

> I am using OS X Lion

> export LS_COLORS='no=00:fi=00:di=05;33:ln=01;36:pi=40;33:
> so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31 ;01:ex=01;32.tar

You need to set LSCOLORS for Mac OS X Lion. Check out the LSCOLORS / LS_COLORS converter here: http://geoff.greer.fm/lscolors/

HTH
HAND
Alex Satrapa


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1684 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why files do not follow LS_COLORS?
  2012-03-16 11:39 why files do not follow LS_COLORS? Leonardo Barbosa
  2012-03-16 18:07 ` Benjamin R. Haskell
  2012-03-16 21:20 ` Alex Satrapa
@ 2012-03-17 21:31 ` S. Cowles
  2012-03-17 23:25   ` TJ Luoma
  2 siblings, 1 reply; 5+ messages in thread
From: S. Cowles @ 2012-03-17 21:31 UTC (permalink / raw)
  To: Leonardo Barbosa; +Cc: zsh-users

On Fri, 16 Mar 2012, Leonardo Barbosa wrote:

> I am using zsh and i trying to set "ls" colors like this. Files are
> colored, but they do not follow the colors i set.  Curiously enough,
> during file completion they do.
> Any idea?


another alternative is to install gnu ls.  one way to do this is install 
fink, then invoke installation of gnu ls.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why files do not follow LS_COLORS?
  2012-03-17 21:31 ` S. Cowles
@ 2012-03-17 23:25   ` TJ Luoma
  0 siblings, 0 replies; 5+ messages in thread
From: TJ Luoma @ 2012-03-17 23:25 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

On Mar 17, 2012, at 5:49 PM, "S. Cowles" <scowles@ckhb.org> wrote:

On Fri, 16 Mar 2012, Leonardo Barbosa wrote:

I am using zsh and i trying to set "ls" colors like this. Files are

colored, but they do not follow the colors i set.  Curiously enough,

during file completion they do.

Any idea?



another alternative is to install gnu ls.  one way to do this is install
fink, then invoke installation of gnu ls.


Easier than Fink is to just install it from Rudix:

http://code.google.com/p/rudix/wiki/coreutils

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-17 23:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 11:39 why files do not follow LS_COLORS? Leonardo Barbosa
2012-03-16 18:07 ` Benjamin R. Haskell
2012-03-16 21:20 ` Alex Satrapa
2012-03-17 21:31 ` S. Cowles
2012-03-17 23:25   ` TJ Luoma

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).