【linux】centos man page设置高亮颜色

编辑 .bashrc 文件

vim .bashrc

加入如下内容

# highlight man page
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
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;32m'

生效

. .bashrc

效果

【linux】centos man page设置高亮颜色_第1张图片

说明:以上内容若有不足、错误之处欢迎指正。

你可能感兴趣的:(linux,centos)