mac osx 默认没有.bashrc文件,可以自行创建.bashrc,然后配置alias ls="ls -G",那么在终端上执行ls命令就会有颜色高亮了。 在linux中ls --color=auto可以高亮,mac 中是-G参数
-G Enable colorized output. This option is equivalent to defining CLICOLOR in the environment. (See below.)
mac osx 默认没有.bashrc文件,可以自行创建.bashrc,然后配置alias ls="ls -G",那么在终端上执行ls命令就会有颜色高亮了。 在linux中ls --color=auto可以高亮,mac 中是-G参数
-G Enable colorized output. This option is equivalent to defining CLICOLOR in the environment. (See below.)