Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No color for directories on OSX 10.8.2 #29

Open
jperichon opened this issue Dec 11, 2012 · 4 comments
Open

No color for directories on OSX 10.8.2 #29

jperichon opened this issue Dec 11, 2012 · 4 comments

Comments

@jperichon
Copy link

Hi,

My directories are not displayed in color.
I'm using OSX 10.8.2. I have tried with iTerm2 and Terminal app (TERM=xterm-256color).

ls--

Thanks!

@Emantor
Copy link

Emantor commented Feb 10, 2013

@sorrell
Copy link

sorrell commented Jul 16, 2013

After more hours than it should have taken for me to debug this, I think I found the solution here. In your terminal window, export the following:

export CLICOLOR_FORCE=1

If this makes your dirs colored, then go ahead an add it to your .*rc.

Nerd detail: What happens is that the -G flag is equivalent to CLICOLOR, but I believe that only colorizes tty output. The ls++ script takes piped output, and -G & CLICOLOR don't color ALL output. CLICOLOR_FORCE takes care of colorizing ALL (including piped) output. (man ls for your own indulgence)

The author should/may consider adding this info to the Mac instructions.

@jperichon
Copy link
Author

Thank you for the time you spent on this... It works!

@obxhdx
Copy link

obxhdx commented Apr 1, 2014

@sorrell Your approach works, but it doesn't take into account custom dircolors. I'm using trapd00r/LS_COLORS and here is the output of ls -l:
screen shot 2014-04-01 at 10 46 01 am
And the output of ls++ after the CLICOLOR_FORCE workaround:
screen shot 2014-04-01 at 10 45 22 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants