Homebrew

brew tap buo/cask-upgrade
brew tap mongodb/brew
brew tap homebrew/autoupdate

brew install git git-lfs git-flow

# 不自动转换 CRLF
git config --global core.autocrlf false
# 显示原始文件名
git config --global core.quotepath off
# 区分大小写
git config --global core.ignorecase false
git config --global init.defaultBranch main
# 设置用户信息
git config --global user.name {username}
git config --global user.email {email}
git config --global credential.github.com.provider {username}

# 访达插件,预览 Markdown
brew install qlmarkdown

# API 客户端
brew install --cask apifox
brew install btop
brew install dbeaver-community
# 管理 Node.js 版本
brew install fnm
brew install font-jetbrains-mono
# 媒体播放器
brew install iina
# 自动切换输入法
brew install --cask input-source-pro
# 增强鼠标功能
brew install mac-mouse-fix
brew install maczip
# 支付宝小程序开发者工具
brew install mini-program-studio
 # 网易云音乐
brew install neteasemusic
# 笔记
brew install --cask obsidian
# 图床
brew install picgo
# 录屏
brew install lihaoyun6/tap/quickrecorder
# 窗口管理工具
brew install --cask rectangle
# 截图和贴图
brew install snipaste
# Git 客户端
brew install sourcetree
brew install switchhosts
# 像 man 命令一样在终端查看命令的说明和使用例子
brew install tldr
# 微信开发者工具
brew install wechatwebdevtools

brew tap mac-cleanup/mac-cleanup-py
# mac-cleanup -c # 设置
# mac-cleanup -n # 运行
brew install mac-cleanup-py

# PHP
brew install php
brew install composer

# Go
brew install go

# 添加以下内容到 ~/.zshrc
export PATH="/Users/wangze/go/bin:$PATH"
export GO111MODULE=on
export GOPROXY=https://goproxy.cn

# Rust
# 解决安装和更新慢:https://rsproxy.cn/#getStarted
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
rustc -V && cargo -V

# 管理 Java,由 https://whichjdk.com 推荐
curl -s "https://get.sdkman.io" | bash

App Store

软件

系统设置

打开

关闭

DNS

Chrome

访问一次 https://google.com/ncr,避免 Google 根据 IP 地区自动重定向

Github

访问加速:https://github.com/521xueweihan/GitHub520

解决 Connection Closed By x.x.x.x Port 22

# ~/.ssh/config
Host github.com
    HostName ssh.github.com
    User {username}
    Port 443

Docker

Settings - Docker Engine

{
    "builder": {
        "gc": {
            "defaultKeepStorage": "10GB",
            "enabled": true
        }
    },
    "experimental": false,
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "10m",
        "max-file": "3"
    }
}
转载文章请注明出处。