zsh 快速配置指南

  1. 安装zsh
sudo apt install zsh

2. 选择zsh

chsh -s /bin/zsh

3. 安装oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

4.安装插件

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-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

4.1 修改~/.zshrc

ZSH_THEME="eastwood"

plugins=(
    git
    # other plugins...
    zsh-autosuggestions
    zsh-syntax-highlighting
)

评论

发表回复