分类: LINUX
2006-11-30 16:43:39
一些花哨的小玩意:
n
nnis a good start with this.n
nDebian ships with this coloured prompt:n
nnPS1u003d'${debian_chroot:+($debiannn_chroot)}[33[01;32m]u@h [33[00m]:[33[01;34m]w [33[00m]$ '
Vhata recommends (well, Stefano added the chroot bit, but otherwise, Vhata recommends):n
nn# Vhata colour prompt
if [ `/usr/bin/whoami` u003d 'root' ]; then
PS1u003d'${debian_chroot:+($debian_chroot)}A/$? [33[01;31m]h [33[01;34m]w $ [33[00m]'
else
PS1u003d'${debian_chroot:+($debian",1] ); //-->6 Highlighting grep output
还有这个wiki上面有一些设置colour的方法,其中的那个man的比较爽~~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'