macOS 入门指南
sudo softwareupdate --install --all # 系统更新 - 可以同时操作安装环境
xcode-select --install # 安装 xcode command line tools
Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH="/opt/homebrew/bin:$PATH"
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
# export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
brew update
brew install iterm2 google-chrome
开发
# Linux/GNU 命 令
brew install openssh git bash ssh-copy-id sshuttle tmux vim bash-completion2
brew install less nano file-formula findutils coreutils binutils diffutils wget rsync unzip gzip unrar telnet p7zip
brew install gnu-{indent,sed,tar,which,units,time} gnutls gpatch grep
# Utils
brew install jq yq
# Extra
brew install mosh wdiff fping
# autossh