Linux使用PS1自定义终端命令行参数(修改Shell命令提示符颜色)

Linux使用PS1自定义终端命令行参数(修改Shell命令提示符颜色) PS1是Linux终端用户的一个环境变量,用来定义命令行提示符的参数。 1.Linux环境变量加载顺序: /etc/profile → /etc/profile.d/*.sh → ~/.bash_profile → ~/.bashrc → [/e

文章来源:

Author:方舟
link:https://www.zhangfangzhou.cn/how-to-customize-and-colorize-your-bash-prompt.html