Simple to beautify your Mac OS X terminal color

Source: Internet
Author: User

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

Related Article

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.