PS1="[e[37;40m][[e[32;40m]u[e[37;40m]@h [e[36;40m]w[e[0m]]\$ "
#步骤#vi .bash_profile末尾追加配置:wq 保存退出source .bash_profile#效果如下#