是否可以在 Bash 中为提示着色?

Oli*_*nde 14 customization bash

是否可以在 Bash 中为提示(“user@host:~/dir/$”)着色?某些命令会生成大量输出,有时很难找到它的开始位置。着色会很有帮助。

Oli*_*nde 29

找到了一个简单的方法:

取消注释force_color_prompt=yes~/.bashrc