LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 755|回复: 2

求助:rxvt-unicode普通用户没有颜色,怎么调出来?

[复制链接]
发表于 2006-11-4 18:14:33 | 显示全部楼层 |阅读模式
root是有颜色的,装上什么都行,可普通用户没有颜色,看起来很不好,怎么调一下,多谢
发表于 2006-11-7 00:07:22 | 显示全部楼层
你指的是什么 颜色?

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

使用道具 举报

 楼主| 发表于 2006-11-7 08:35:54 | 显示全部楼层
多谢了!试试看
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表