比如Ubuntu系统中,另term=xterm是如下样子
令term=linux是如下样子
这是在哪里哪个脚本控制的?
伊谢尔伦2017-04-17 15:58:39
xterm supports 256 colors, while linux term only supports 16 colors, so in
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
In this code, it is judged whether $TERM is xterm or whether it supports 256 colors to decide whether to enable color_promt