.bashrc备份
时间:2010-08-20 来源:cwm85
#加速cd命令
export CDPATH=.:..:~
#自定义ps查找命令
p()
{
ps auxw|egrep "$1|PID"|grep -v egrep;
}
#彩色bash提示
export PS1="\[\e[32;1m\]\u>\[\e[34;1m\] \w\\n\[\e[35;1m\]\\$\[\e[0m\]"
#man 如何显示彩色字符,强烈推荐。男人也柔情。
#参考:http://wiki.ubuntu.org.cn/UbuntuSkills#man_.E5.A6.82.E4.BD.95.E6.98.BE.E7.A4.BA.E5.BD.A9.E8.89.B2.E5.AD.97.E7.AC.A6
#vim ~/.bashrc
#增加下面的内容:
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'
export CDPATH=.:..:~
#自定义ps查找命令
p()
{
ps auxw|egrep "$1|PID"|grep -v egrep;
}
#彩色bash提示
export PS1="\[\e[32;1m\]\u>\[\e[34;1m\] \w\\n\[\e[35;1m\]\\$\[\e[0m\]"
#man 如何显示彩色字符,强烈推荐。男人也柔情。
#参考:http://wiki.ubuntu.org.cn/UbuntuSkills#man_.E5.A6.82.E4.BD.95.E6.98.BE.E7.A4.BA.E5.BD.A9.E8.89.B2.E5.AD.97.E7.AC.A6
#vim ~/.bashrc
#增加下面的内容:
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'
相关阅读 更多 +