安装oh-my-zsh
- 安装
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 编辑~/.zshrc
vim ~/.zshrc # 或使用你喜欢的其他文本编辑器
- 主题配置
ZSH_THEME="robbyrussell" # 默认主题
- 保存配置
source ~/.zshrc
使用 zsh-autosuggestions
- 下载
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 打开~/.zshrc
plugins=(git zsh-autosuggestions)
- 保存
source ~/.zshrc
使用 zsh-syntax-highlighting
- 下载
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 打开~/.zshrc
plugins=( [plugins...] zsh-syntax-highlighting)