macOS 设置
Homebrew 安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装软件
brew install 软件名
1
2
3
4
5
6
7
8
9 安装,更新或卸载
brew install nodejs
brew upgrade nodejs
brew remove nodejs
brew list # 列出当前安装的软件
brew search nodejs # 查询与 nodejs 相关的可用软件
brew info nodejs # 查询 nodejs 的安装信息
brew services管理各种服务的启停,有点像 linux 里面的 services
给MacOS终端CLI添加颜色 Terminal
vim ~/.bash_profile
1 | export CLICOLOR=1 |
- 更新刚配置的环境变量
source .bash_profile
ll = ls -al 设置别名
vim ~/.bash_profile alias ll='ls -al'
1 | pwd |
Mac tree 命令,中文文件名乱码
tree -N
tree -L 2
2层级
mac、linux终端 Idea Terminal 显示git当前所在分支
1 | vim ~/.bash_profile |
mac terminal git status 中文显示乱码
git config --global core.quotepath false
广告
阿里云活动云服务器低至1核-2G-1M,1年89元,3年229。
2核-4G-3M,2年469元,3年799。
2核-8G-5M,3年899元。
新老客户都有优惠 点击查看详情/购买
腾讯云现在活动
1核 2G 1M 88一年
2核 4G 5M 3年只要998。 点击查看详情/购买