Mac OS X is known as a graphical interface, but as a Unix-like system, it is still inseparable from the terminal (shell), especially for developers, MAC OS X default state of the terminal gives people feel is always uncomfortable, so it is necessary to beautify it.
What's the color of the above terminal? Change the color, font, different file types of color separation display and so on, it seems to be more comfortable, making this modification is also very easy, only need the following steps:
1: Select color and font with terminal preferences.
I use the color scheme is "Homebrew", the font is used "Menlo Regular PT"
2: Write config file, modify path, prompt color, and open the highlight of LS command.
Create a configuration file in the user's home directory:
VI./.bash_profile
Then write (press I into edit mode) with the following configuration file:
# for Color
Export Clicolor=1
# \h:\w \u\$
Export ps1= ' \[\033[01;33m\]\[email protected]\h\[\033[01;31m\] \w\$\[\033[00m\] '
# grep
Alias grep= ' grep--color=always '
Save exit: Press ESC, enter command mode, and enter
Wq
Then reopen the shell and see the same style as above. It's simple to beautify the terminal of Mac OS X.
Simple to beautify your Mac OS X terminal color