自定义shell开头PS1

vim /etc/profile

export PS1="flag:W u$"

h是主机名,并不全,域

W是当前所在目录名

u 是当前shell用户名

原文地址:https://www.cnblogs.com/a-xu/p/7889722.html