45
26
I haven't been able to apply any color scheme to iTerm2.
It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors).
Using Mac OSX 10.7.2. Any help?
45
26
I haven't been able to apply any color scheme to iTerm2.
It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors).
Using Mac OSX 10.7.2. Any help?
89
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.
if this doesn't work, that a look at the 2nd answer bellow about the contrast... – João Pinho – 2016-01-06T01:40:58.460
it works very well for me – ajreal – 2013-04-22T19:27:24.933
1exporting the CLICOLOR finally made colors appear in iTerm2. The preference had xterm-256color set, I wonder why this was tripping it up. – mguymon – 2014-02-12T21:18:31.530
39
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.
1Works great, but it's Preferences > Profiles > Colors > Minimum Contrast – Niclas – 2017-08-01T18:32:35.667
You're a life saver. iterm has to many damn options. – mdgrech – 2019-02-18T04:15:13.503
16
I had the same problem and found a solution:
Profiles -> Colors -> Minimum Contrast
. If it's high, then you only get black and white.
i set this without knowing that it set all the colors to black & white, and this comment help me fix that. THanks! – Roy Rico – 2015-06-03T18:58:14.403
superb! it worked, what a ...flower! ... my iterm got setup like that by default. – João Pinho – 2016-01-06T01:39:48.553
Perfect! I slide everything back to 0 and everything is colored again. Thanks! – Matheus Felipe – 2016-09-14T17:55:26.257
2
If you are using zsh
and @sam3k answer didn't work for you - you should put those lines in .zshrc
instead of .bash_profile
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.
0
If both modifying .zshrc and turning down minimum contrast DIDN'T WORK, then also make sure that Cursor Boost value is small enough.
i just revisited this on 2/3/17 see this link: http://superuser.com/questions/1171515/iterm-color-scheme-profile-command/1174651#1174651
– DeerSpotter – 2017-02-03T17:55:37.093Really any color you select? What is the Terminal Type selected in Preferences » Profiles » Default » Terminal under Terminal Emulation? – slhck – 2012-03-11T22:21:13.750
So there is a bug in iterm2.... Use default item provided.... – ZaB – 2012-03-11T22:10:18.067
@slhck Report Terminal Type: xterm-256color – Panagiotis Panagi – 2012-03-12T12:51:37.667
Try changing it to
xterm
and see if that works. – slhck – 2012-03-12T13:05:23.400@slhck Changed to
xterm
andxterm-new
and restarted. Nothing works. – Panagiotis Panagi – 2012-03-12T13:14:56.577