代理&镜像

系统代理

git clone --branch master --depth 1 https://ghfast.top/https://github.com/nelvko/clash-for-linux-install.git   && cd clash-for-linux-install   && sudo bash install.sh

uv镜像

mkdir -p ~/.config/uv && echo -e '<a href="index.html" class="internal-link">index</a>\nurl = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"\ndefault = true' > ~/.config/uv/uv.toml

nodejs

# 安装
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash && \
export NVM_DIR="$HOME/.nvm" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
nvm install --lts
# 镜像
npm config set registry https://registry.npmmirror.com

brew

# 永久配置国内镜像源 (清华源)
echo 'export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"' >> ~/.zshrc
echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"' >> ~/.zshrc
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"' >> ~/.zshrc

# 刷新配置
source ~/.zshrc

评论