首先确保Mac系统是否安装了 Command Line Tools (CLT) for Xcode
请在终端执行下列命令
xcode-select --install
注意,这是一个安装 Homebrew 的脚本,它可以在 Bash 和 Zsh 中都运行
执行以下脚本(如果无法连接Github,请把脚本拷贝在本地,然后在本地执行)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/asthetik/computer-setup/master/mac/homebrew/ustc/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/asthetik/computer-setup/master/mac/homebrew/install.sh)"
brew -v
参考:
清华大学Homebrew镜像使用帮助 中科大Homebrew镜像使用帮助
执行以下脚本(如果无法连接Github,请把脚本拷贝在本地,然后在本地执行)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/asthetik/computer-setup/blob/master/mac/homebrew/ustc/mirrorSource.sh)"
执行以下脚本(如果无法连接Github,请把脚本拷贝在本地,然后在本地执行)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/asthetik/computer-setup/blob/master/mac/homebrew/tuna/mirrorSource.sh)"
brew update
Visit ronniedroid/getnf for an easy way to install nerd fonts.
custom theme: extras/zenburned_onedark.itermcolors
reference: schemes/zenburned.itermcolors
brew install neovim
reference: nvim-lua/kickstart.nvim
clone and custom: asthetik/kickstart.nvim