Mac terminal command line color highlighting Solution

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.