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
相關文章
相關標籤/搜索