Ubuntu 14.04修改PS1变量,呈现彩色bash提示符

Ubuntu 14.04修改PS1变量,呈现彩色bash提示符 1.在控制台输入sudo vim /etc/bash.bashrc,打开配置文件. 2.在配置文件中搜索"PS1"字符. 3.修改PS1变量,增加颜色.如PS1=’\e[32;1m[${debian_chroot:+($debian_chroot)}\[email protected]\h:\W]\$\e[0m ',其中\e{32;1
相关文章
相关标签/搜索