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.