在.bash_profile里添加:
export PS1='[\[\e[31;40m\]\u\[\e[37;40m\]@\[\e[36;40m\]\H \[\e[33;40m\]\w\[\e[37;40m\]]\$ \[\e[32;40m\]'
效果:
在.bash_profile里添加:
export PS1='[\[\e[31;40m\]\u\[\e[37;40m\]@\[\e[36;40m\]\H \[\e[33;40m\]\w\[\e[37;40m\]]\$ \[\e[32;40m\]'
效果: