Iterm2 color issue

An issue found for iterm2 on Mac is that the color of profiles does not apply, e.g. run “ls -l” command you don’t see the different colors for directories or files.


# 1 - open ~/.bash_profile and add below two items:
export CLICOLOR=1
export TERM=xterm-256color

# 2 - go to: Preferences > Profiles > Terminal > Report Terminal Type
# 3 - set the type to xterm-256color

See Fix iTerm2 color scheme does not get applied for reference.