OSX下ls命令区分文件和文件夹

 

1.vim ~/.bash_profile

2.增加(先按i,然后粘贴)

      #set color

      export CLICOLOR=1

      export LSCOLORS=gxfxaxdxcxegedabagacad

3.保存(先按esc,然后输入:wq)

4.source ~/.bash_profile使bash_profile生效

Leave a Comment