Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5699349
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: LINUX

2006-11-30 16:43:39

一些花哨的小玩意:

n nnn

n

nn
[]
nnn

Colourful prompt

nn

is a good start with this.n

n

Debian ships with this coloured prompt:n

nn
PS1u003d'${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
nn

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'



    阅读(1154) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~