Linux Terminal color scheme

Source: Internet
Author: User

1, this article is based on CENTOS7 system terminal settings to explain, but other versions of Linux system should be similar.

2. Open terminal, ' Edit '--' profile Preference '--' colos '--Remove the ' use colors from System theme ' Front tick

3, Edit color:

Text Color: #839496

Background Color: #002B35

4, and that's what it looks like.

5, set command prompt color

Add the PS1 variable to the last line of the ~/.BASHRC as follows

ps1= "\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]@\h \[\e[36;40m\]\w\[\e[0m\]]\\$"

Specific PS1 formatting can be referenced

Http://www.cnblogs.com/Q--T/p/5394993.html

Then execute #source ~/.BASHRC to make it effective

Linux Terminal color scheme

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.