|
|
发表于 2006-11-7 00:07:22
|
显示全部楼层
你指的是什么 颜色?
命令行的颜色是要在~/.bashrc文件中设置的。- # enable color support of ls and also add handy aliases
- if [ "$TERM" != "dumb" ]; then
- eval "`dircolors -b`"
- alias ls='ls --color=auto'
- alias dir='ls --color=auto --format=vertical'
- alias vdir='ls --color=auto --format=long'
- fi
- # set a fancy prompt (non-color, unless we know we "want" color)
- case "$TERM" in
- xterm-color)
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- ;;
- *)
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
- ;;
- esac
- # Comment in the above and uncomment this below for a color prompt
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- # If this is an xterm set the title to user@host:dir
- case "$TERM" in
- xterm*|rxvt*)
- PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
- ;;
- *)
- ;;
- esac
复制代码 rxvt自己底色的设置可以用命令行参数,也可以修改~/.Xresources文件来设置。- Xft.dpi:96
- ! Normal setting
- !XIM
- ! if rxvt can't load fontset
- !URxvt.preeditType:Root
- ! else
- URxvt.preeditType:OverTheSpot
- URxvt.imFont:fixed
- ! Xim end
- URxvt.geometry: 80x25
- URxvt.cursorColor:blue
- URxvt.visualBell:true
- ! Color setting
- !URxvt.foreground:lightgray
- !URxvt.background:black
- URxvt.foreground:black
- URxvt.background:lightyellow
- ! transparent setting
- !URxvt.inheritPixmap:true
- URxvt.inheritPixmap:false
- URxvt.tintColor:lightgray
- URxvt.shading:30
- ! normal setting
- URxvt.termName:rxvt-unicode
- URxvt.cursorBlink:true
- URxvt.saveLines:65535
- URxvt.scrollBar_right:true
- URxvt.scrollTtyKeypress:true
- URxvt.scrollTtyOutput::false
- URxvt.scrollWithBuffer:false
- URxvt.font: -*-fixed-medium-r-*--14-*-*-*-*-*-iso10646-1,\
- xft:SimSun:pixelsize=14:antialias=false
复制代码 |
|