How to customize the color for Terminal terminal under Mac
This article mainly explains "how to customize the color of Terminal under Mac". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "How to customize the color of Terminal under Mac"!
The terminal display defaults to one color in Mac, which is too monotonous.
However, we can customize these color displays. Go to the ~ directory, edit the file.bash_profile, and enter the following:
Do those fxfxax in the third line look like a book? In fact, there are rules, a total of 22 letters, according to the order, the previous scenery, the back scenery, respectively, the following file types are set:
1. directory
2. symbolic link
3. socket
4. pipeline
5. executable file
6. special block file
7. special characters
8. executable with setuid bit set
9. executable with setgid bit set
10. directory writable to others, with sticky bit
11. directory writable to others, without sticky bit
Color of letters:
a Black
b Red
C Green
d Brown
E Blue
f magenta
g Cyan
h Light grey
A black bold
B red bold
C Green Bold
D Brown bold
E Blue Bold
F Magenta bold
G Cyan bold
H Light grey bold
x System default color
The final effect after setting is as follows:
At this point, I believe that everyone has a deeper understanding of "how to customize the color of the Terminal under Mac," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!