mac 系统配置(一)

1.终端颜色配置

文件 .bash_profile下添加环境变量如下:

        export CLICOLOR=1
        export LSCOLORS=gxfxaxdxcxegedabagacad

环境变量生效:
source ~/.bash_profile

2.brew 安装

安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 回车
用法
brew update 更新brew;
brew install {应用名,如git} 安装软件
brew cask install {应用名,如git} 也是下载安装,与上面的区别,请查看https://www.zhihu.com/question/22624898

欢迎评论交流
原文地址:https://www.cnblogs.com/linengier/p/9597017.html