10.04 64位 终端不能高亮显示关键字
发表于 : 2011-09-01 9:52
如图附件,彻底卸载了终端,也在新德利软件管理里面删掉了配置文件,再重新安装还是无法高亮显示关键字,比如用find 命令查找文件时,请各位帮帮忙
grep 时也没有高亮,刚刚装好系统时是可以的,但是换过一次主题后就不行了
grep 时也没有高亮,刚刚装好系统时是可以的,但是换过一次主题后就不行了
代码: 全选
alias ls='ls --color=auto'
alias grep='grep --color=auto'
代码: 全选
export LESS_TERMCAP_mb=$'\033[01;31m'
export LESS_TERMCAP_md=$'\033[01;31m'
export LESS_TERMCAP_me=$'\033[0m'
export LESS_TERMCAP_se=$'\033[0m'
export LESS_TERMCAP_so=$'\033[01;44m'
export LESS_TERMCAP_ue=$'\033[0m'
export LESS_TERMCAP_us=$'\033[01;32m'
alias mancolor.unset='unset LESS_TERMCAP_mb LESS_TERMCAP_md LESS_TERMCAP_me LESS_TERMCAP_se LESS_TERMCAP_so LESS_TERMCAP_ue LESS_TERMCAP_us'
高亮显示的man页面不错,多谢分享。cjxgm 写了:find 确实没高亮
在你的 ~/.bashrc 里加上:这样 ls 和 grep 就能高亮了代码: 全选
alias ls='ls --color=auto' alias grep='grep --color=auto'
加上man 就可以彩色了代码: 全选
export LESS_TERMCAP_mb=$'\033[01;31m' export LESS_TERMCAP_md=$'\033[01;31m' export LESS_TERMCAP_me=$'\033[0m' export LESS_TERMCAP_se=$'\033[0m' export LESS_TERMCAP_so=$'\033[01;44m' export LESS_TERMCAP_ue=$'\033[0m' export LESS_TERMCAP_us=$'\033[01;32m' alias mancolor.unset='unset LESS_TERMCAP_mb LESS_TERMCAP_md LESS_TERMCAP_me LESS_TERMCAP_se LESS_TERMCAP_so LESS_TERMCAP_ue LESS_TERMCAP_us'