ls-- icon indicating copy to clipboard operation
ls-- copied to clipboard

No color for directories on OSX 10.8.2

Open jperichon opened this issue 13 years ago • 4 comments

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!

jperichon avatar Dec 11 '12 00:12 jperichon

https://github.com/trapd00r/LS_COLORS

Emantor avatar Feb 10 '13 16:02 Emantor

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.

sorrell avatar Jul 16 '13 22:07 sorrell

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

jperichon avatar Jul 28 '13 02:07 jperichon

@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

obxhdx avatar Apr 01 '14 17:04 obxhdx