linux默认到man是单色的,看着很不爽,网上搜了下用以下方法可以使其具有色彩,记录下,嘿嘿
在~/.bashrc末尾加入
#manpage设置
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'
#grep带颜色
alias grep='grep --colour=auto'
export GREP_COLOR='1;37;41'
然后source ~/.bashrc