用于新mac的环境配置

clash

homebrew

git

ssh

  1. 生产密钥

    1
    ssh-keygen -t ed25519 -C "your_email@example.com"

    全部默认回车即可

  2. 复制公钥

    1
    cat ~/.ssh/id_ed25519.pub  # 如果是 rsa 密钥,执行 cat ~/.ssh/id_rsa.pub
  3. 添加到 Github

  4. 测试

    1
    ssh -T git@github.com

    首次连接要输出 yes

    输出 “Hi your_github_username! You’ve successfully authenticated, but GitHub does not provide shell access.”,说明配置成功

git gpg

见个人博客

nvm, npm, pnpm

go

python, miniconda

oh-my-zsh, p10k