还我彩色ls
Saturday, December 25th, 2004Debian安装好之后发现ls不是彩色的… 察看了一下.bashrc里面确实有设置 alias ls=’ls –color=auto’ 郁闷。偶尔发现如果再执行一次bash就正常了。我想可能是和这几个初始文件的执行顺序有关系吧,google了一下查到了一些资料:
Re: I’m really confused by bash, .bashrc, .bash_profile, .profile, etc,
Each of these files are read by bash at different times: .bash_profile is executed when you login. Stuff you put in there might be your PATH and other important environment variables. .bashrc is used for non login shells. I’m not sure [...]