Mac终端文件类型显示不同颜色

来源:互联网 发布:妮维雅柔肤乳 知乎 编辑:程序博客网 时间:2024/05/12 20:23
1.在~/.bash_profile中加入:export CLICOLOR=1export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色export CLICOLOR='Yes' #是否输出颜色export LSCOLORS='Exfxcxdxbxegedabagacad' #指定颜色alias ls='ls -G'