ITerm2 is a very good terminal in Mac OS X system, but the default color is very uncomfortable, so you need to color your own. Before looking for a lot of similar articles, most of them are reproduced, and there are problems, so made some changes.
First, you can edit the. Bash_profile, enter the command: Vim ~/.bash_profile. Then enter the following code:
#enables Colorin the terminal bash shell export
Export Clicolor=1
#sets up Thecolor scheme for list export
Export Lscolors=gxfxcxdxbxegedabagacad
#sets up Theprompt color (currently a green similar to Linux terminal)
Export ps1= ' [email protected]:w$ 33[01;32m33[00m33[01;36m33[00m '
#enables colorfor ITerm
Export Term=xterm-256color
Then restart the iterm. After the modification, the system comes with the terminal style will also change.
The following restart styles are as follows:
Mac ITerm2 Color Matching