您当前的位置:Linux学习网Linux基本应用 → 文章内容

更改debian目录颜色的方法

作者:Relief  来源:5dlinux.com  发布时间:2008-5-13 8:09:00
1. 修改~/.bashrc中:
QUOTE:
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
#eval "`dircolors -b`"
eval "`dircolors ~/.dircolors`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

2. $dircolors -p > ~/.dircolors

3. 修改~/.dircolors中的:" DIR 01;34 # directory " 为自己喜欢的颜色(共有8种颜色可选,具体请看.dircolors注释)。
  • 上一篇文章:SUSE上xdmcp
  • 下一篇文章:解决linux firefox不能显示好汉字
  •