How to Set Some highlighted primary colors in the terminal command line

Source: Internet
Author: User
Article Title: some methods for setting highlighted primary colors in the terminal command line. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Some highlighted primary color settings in the terminal command line

First, you need to change the color analysis display function of the statement bodies supported by the important vim editor, because t6.06 is disabled by default. So now start: # vi/etc/vim/vimrc

######################################## ##################

Vim5 and later versions support syntax highlighting. Uncommenting the next

"Line enables syntax highlighting by default.

"Syntax on

######################################## ##################

Find the above position and remove the comments of syntax on.

Next, change the prompt color on the terminal: change the color of the prompt During frequent operations on the terminal, greatly improving the efficiency: vi ~ /. Bashrc

######################################## ################ Comment in the above and uncomment this below for a color prompt

# PS1 = '$ {debian_chroot: + ($ debian_chroot)} \ [\ 033 [01; 32m \] \ u @ \ h \ [\ 033 [00m \]: \ [\ 033 [01; 34m \] \ w \ [\ 033 [00m \] \ $'

######################################## #################

Find the above content and remove the comments of PS1. You can also edit the following colors based on your preferences: 30 (black) and 31 (red) 32 (green), 33 (yellow), 34 (blue), 35 (purple), 36 (blue), and 37 (white ). There are also eight colors available for the base color. You only need to change 3 of the font color to 4, such as 40, 41, 42, 43, 44, 45, 46, and 47.

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.