root用户下,用户名用绿色,工作目录用白色

在/root/bash.bashrc
末尾追加export PS1='\[\e[01;32m\]\u@\h:\[\e[37;40m\]\w\$ '
,
root用户下,用户名用绿色,工作目录用白色
在/root/bash.bashrc
末尾追加export PS1='\[\e[01;32m\]\u@\h:\[\e[37;40m\]\w\$ '
,
本文标题:Linux修改Shell命令提示符颜色
本文链接:https://www.haomeiwen.com/subject/ycdxlktx.html
网友评论