export PS1="\[\e[37;1m\][\[\e[35;1m\]\u\[\e[37;1m\]@\[\e[32;1m\]\h \[\e[34;1m\]\W\[\e[37;1m\]]\[\e[33;1m\]\$ \[\e[0m\]" /etc/profile
将上述代码粘贴进 .bashrc文件中-最后一行即可
然后重新执行该文件,输入source .bashrc 回车
784 cd
785 ll
786 vi .bashrc
787 source .bashrc
效果: