Terminal 高亮显示

设置高亮显示,修改文件 ~/.bashrc

prompt 提示信息设置成彩色

#force_color_prompt=yes     ***去掉注释改为***
force_color_prompt=yes


 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;31m\]@\[\033[01;36m\]\h\[\033[01;33m\]:\W\$\033[01;36m '
source     ~/.bashrc            # 让其生效

man 颜色配置

参考:
https://blog.csdn.net/pipisorry/article/details/39584489

export LESS_TERMCAP_mb=$'\E[01;32m'
export LESS_TERMCAP_md=$'\E[01;32m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;36m'

你可能感兴趣的:(Terminal 高亮显示)