一些花哨的东东
时间:2006-11-30 来源:CUDev
一些花哨的小玩意:
- 1 Colourful prompt
- 2 Colour-coded ls
- 3 Colourful manpages (RedHat style)
- 4 Coloured logging
- 5 Less with files containing ESC codes
- 6 Highlighting grep output
- 7 Colourful vim systax highliting
- 8 Colourful SPAM in mutt
还有这个wiki上面有一些设置colour的方法,其中的那个man的比较爽~~
http://wiki.clug.org.za/wiki/Colour_on_the_command_line#Colourful_vim_systax_highliting
Colourful manpages (RedHat style)
In your .bashrc (which on a good Debian system is included from .bash_profile), add
# For colourful man pages (CLUG-Wiki style)
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'
相关阅读 更多 +