|
发表于 2004-4-4 11:59:09
|
显示全部楼层
我也来引用一段来自blfs文档的脚本:
- # 设置 /bin/ls 支持颜色,其别名放在 /etc/bashrc中
- if [ -f "/etc/dircolors" ] ; then
- eval $(dircolors -b /etc/dircolors)
- if [ -f "$HOME/.dircolors" ] ; then
- eval $(dircolors -b $HOME/.dircolors)
- fi
- fi
复制代码
把上面的代码添加到/etc/profile,就可设置ls命令的彩色输出。 |
|