homebrew

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

# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin <https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git>

# 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin <https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git>

# 刷新源
brew update

oh-my-zsh

sh -c "$(curl -fsSL <https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)"

zsh插件

插件在.zshrc里配置,找到plugins关键字,加载插件;系统默认加载git,可以追加内容,如下:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

zsh-autosuggestions(历史命令智能提示)

git clone <https://github.com/zsh-users/zsh-autosuggestions> $ZSH_CUSTOM/plugins/zsh-autosuggestions

zsh-syntax-highlighting(命令语法高亮)

git clone <https://github.com/zsh-users/zsh-syntax-highlighting> $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

主题:Powerlevel10k

https://github.com/romkatv/powerlevel10k#oh-my-zsh

https://github.com/romkatv/powerlevel10k#manual

字体

jetbrain-mono

https://www.jetbrains.com/lp/mono/#design

nerd-fonts

brew tap homebrew/cask-fonts && 
brew cask install font-jetbrains-mono-nerd-font

配色