Install
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" // or gitee mirror sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
Theme
- open
.zshrc
vim ~/.zshrc
- change
ZSH_THEME
- change to "ys"
Plugins
git
内置,.zshrc 中可以看到已经配置
zsh-syntax-highlighting
安装
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
在 zsh 中添加插件
# .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=(git zsh-syntax-highlighting)
生效
source ~/.zshrc