The Computer Oracle

Color scheme not applied in iTerm2

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Quirky Dreamscape Looping

--

Chapters
00:00 Color Scheme Not Applied In Iterm2
00:20 Accepted Answer Score 109
00:59 Answer 2 Score 44
01:18 Answer 3 Score 18
01:33 Answer 4 Score 3
01:47 Answer 5 Score 0
02:02 Thank you

--

Full question
https://superuser.com/questions/399594/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#mac #terminal #iterm #iterm2

#avk47



ACCEPTED ANSWER

Score 109


I've been having the same issue and this is what seems to have solved it:

In your .bash_profile set CLICOLOR before setting TERM:

# Set CLICOLOR if you want Ansi Colors in iTerm2 
export CLICOLOR=1

# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color

save bash file and source:

source ~/.bash_profile 

Then, in your iTerm2 Preferences > Profiles > Terminal > Report Terminal Type, set to either xterm-256color or xterm

Close iTerm2, restart it and type ls. That did the trick for me.

Good luck.


Catalina and ZSH

If using ZSH, which is the default shell in Catalina and later, use ~/.zprofile, instead of ~/.bash_profile.




ANSWER 2

Score 44


this is a really old question, but make sure your Preferences -> Profiles -> Colors -> Minimum contrast setting is not at the max... if it is and you've done what is suggested above, slide it to a lower setting and you should see the colors appear.




ANSWER 3

Score 18


I had the same problem and found a solution: Profiles -> Colors -> Minimum Contrast. If it's high, then you only get black and white.




ANSWER 4

Score 3


If you are using zsh and @sam3k answer didn't work for you - you should put those lines in .zshrc instead of .bash_profile




ANSWER 5

Score 0


Several answers have mentioned the contrast setting. Even at about 60% of the way across my ANSI blue turned black.

Crank the contrast down before you look for other solutions; it is way more aggressive than I expected.