MacOS

记录一下新到的 MacOS 软件安装

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/dawn/.zprofile

echo 'export HOMEBREW_PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple' >> ~/.zprofile

echo 'export HOMEBREW_API_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api' >> ~/.zprofile

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.zprofile

Basic

brew install font-lxgw-wenkai
brew install tmux
brew install git

Oh my zsh

git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Podman

brew install podman
podman machine init
podman machine start

输入法

brew install --cask squirrel

git clone --depth=1 git@github.com:acdiost/oh-my-rime.git ~/Library/Rime

Nodejs

brew install node@22
echo 'export PATH="/opt/homebrew/opt/node@22/bin:$PATH"' >> ~/.zprofile

Rust

brew install rust

Python

brew install python@3.13
pip3 config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/

Go

brew install go
echo "export GOPATH=$HOME/go" >> ~/.zprofile
echo "export GO111MODULE=on" >> ~/.zprofile
echo "export GOPROXY=https://goproxy.cn,direct" >> ~/.zprofile

Java

brew install java
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zprofile

brew install maven
# 配置文件
/opt/homebrew/Cellar/maven/3.9.9/libexec/conf/settings.xml

Syncthing

使用 Syncthing 同步文件

brew install --cask syncthing
brew services start syncthing

http://127.0.0.1:8384

keepassxc

密码管理工具

brew install --cask keepassxc