安装oh-my-zsh及相关插件
1. 安装oh-my-zsh
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2. 安装高亮、提示、自动补全插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
3. 插件配置及主题更换
打开.zshrc, 将plugins
改为如下内容:
# 主题更换
ZSH_THEME="pygmalion"
# 插件配置
plugins=(
git
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
)