|
我想使用带颜色的ls命令
要将其加入/etc/bashrc
alias ls='ls --color=auto'
同时又要在profile加入以下语句
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
fi
fi
但光使用这两个文件
如果不在家目录下面修改bashrc 和bash_profile文件
仍然不会起作用
因此想在这里问一下
以上四个文件是怎么相互配合工作的。。
谢谢 |
|