Although Mac OS X is famous for its graphic interface, as a Unix-like system, it is still inseparable from the terminal (Shell), especially for developers, mac OS X's default terminal is always uncomfortable, so it is necessary to beautify it.
How is the color of the terminal above? After changing the color scheme, Font, and color separation display of different file types, it looks much more comfortable. It is also easy to make this change. You only need to perform the following steps:
1. Select the color and font Based on the terminal preference settings.
The color scheme I use is "homebrew", and the font is "Menlo regular 14 pt"
2: Write the configuration file, modify the path, prompt color, and enable the highlighted LS command.
Create a configuration file in the user's home directory:
Vi./. bash_profile
Then write the following configuration file (press I to enter the editing mode:
# For color
Export clicolor = 1
# \ H: \ W \ U \ $
Export PS1 = '\ [\ 033 [01; 33m \] \ U @ \ H \ [\ 033 [01; 31m \] \ W \ $ \ [\ 033 [00m \]'
Save and exit: Press ESC to Enter command mode, and then enter
WQ
Then re-open the shell to see the same style as above. It's easy to beautify the terminal color of Mac OS X.