homebrew

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.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)"

zsh插件

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

plugins=(
	git
	z
	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

GitHub - romkatv/powerlevel10k: A Zsh theme

字体

jetbrain-mono

JetBrains Mono: A free and open source typeface for developers

配色

Dracula

iTerm