I'm coming from StackOverflow where I posted this question and got redirected here. Let me ask it here again :
I have been trying to add colors to my mac terminal but not every file is colored. Furthermore different files with the same extension (ex : .png) show some particular behaviour : some of them are colored, and some of them are not.
I have been following different tutorials around the web (installing coreutils, and using CLICOLOR=1). Both gave the same result, some files are colored, some are not.
Here is what I wrote in
.bash_profile following a thread like this one:
export CLICOLOR=1 export LSCOLORS=ExGxFxdxCxDxDxHBhDhCgC
I then saved, forced reload with
source .bash_profile and launched a new terminal window. Here is what it gave me (3 png images that are not color coded the same way).
It also will not work with other extensions (eg. zip here). Directories (in purple) seem to be the only "type" color coded every time.
Note : I generally use iTerm2 but both terminals have the same behavior.
Note : The screenshots are the same if I write
ls -G instead of
I have searched everywhere and cannot find someone who asked the same question online. Hopefully you can help me! Thank you!
EDIT : Here's what happens when I write
ls -linstead of
ls as Kamil Maciorowski asked in commments (I did not know that was what they asked and I do not know if it helps).