Mac里终端显示默认是一种颜色,太单调了。bash
然而咱们能够自定义这些颜色显示。进入~目录,编辑文件.bash_profile, 输入以下内容:ui
第三行那些fxfxax看起来是否是像天书?其实是有规律的,一共22个字母,按照前后顺序,先前景色,后背景色,分别对如下的文件类型进行设置:spa
1. 目录rem
2. 符号连接it
3. 套接字table
4. 管道class
5. 可执行文件file
6. 特殊块文件终端
7. 特殊字符im
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
字母表明的颜色:
设置后最终生效以下:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":