https://blog.csdn.net/zhangym199312/article/details/77600375
补充,对所有生效:
写入/etc/bashrc对全部用户生效。
vim /etc/bashrc
if [ "$PS1" ]; then
PS1='[\[\e[36;40m\]\u@\[\e[31;40m\]\h \[\e[33;40m\]\w\[\e[0m\]]\$ '
fi
https://blog.csdn.net/zhangym199312/article/details/77600375
补充,对所有生效:
写入/etc/bashrc对全部用户生效。
vim /etc/bashrc
if [ "$PS1" ]; then
PS1='[\[\e[36;40m\]\u@\[\e[31;40m\]\h \[\e[33;40m\]\w\[\e[0m\]]\$ '
fi