参考:
https://www.jianshu.com/p/ca7477d4b6bd
1,修改.bash_profile文件(用户根目录下)
vi打开.bash_profile文件,找到PS1或者新增加PS1的导入:
export PS1="[\u@\h \W]$"
将PS1修改为"[\u@\h \W]$",一定要带双引号;
2,在终端下执行source .bash_profile
参考:
https://www.jianshu.com/p/ca7477d4b6bd
1,修改.bash_profile文件(用户根目录下)
vi打开.bash_profile文件,找到PS1或者新增加PS1的导入:
export PS1="[\u@\h \W]$"
将PS1修改为"[\u@\h \W]$",一定要带双引号;
2,在终端下执行source .bash_profile