MacOS开发环境配置
2023-06-22 本文已影响0人
小餐包
使用MacOS作为生产力工具时,由于总所周知的原因,配置开发环境经常需要搜索一些镜像源,以下是本人新配置的MBP以后的软件清单,分享供参考:
基础工具
- homebrew:
# 安装homebrew并设置国内源
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew -v
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
- oh-my-zsh:
# 安装oh-my-zsh
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
- iterm2: https://iterm2.com/
开发环境配置
-
pycharm: https://www.jetbrains.com/pycharm/download/#section=mac
-
vscode: https://code.visualstudio.com/
-
dockerdesktop: https://www.docker.com/products/docker-desktop/
修改
~/.docker/daemon.json
配置:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
-
python3:
# brew安装 brew install python3 # 设置国内pypi源 cat ~/.pip/pip.conf [global] index-url = https://mirrors.163.com/pypi/simple/
-
golang
# brew安装 brew install golang # 设置国内代理 brew install golang go env -w GOPROXY=https://goproxy.cn,direct
数据库配置
启动mysql docker实例:
docker run --name test-mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=yourpassword -p 3306:3306 -v mysql-data:/var/lib/mysql -d mysql:8.0
知识管理&效率工具
- dida清单: https://www.dida365.com/about/download
- cubox: https://cubox.cc/
- flomo: https://flomoapp.com/
- typora: https://typoraio.cn/
- xmind: https://xmind.cn/
- onedrive: https://onedrive.live.com/about/zh-cn/
- snipaste: https://zh.snipaste.com/download.html