Linux系统安装oh-my-zsh


Oh-My-Zsh安装

  1. 检查当前可用shellcat /etc/shells,如果没有zsh则需要安装zshapt install zsh

  2. 查看当前使用shellecho $SHELL,如果不是zsh则需要切换到zshchsh -s /bin/zsh

  3. 安装oh-my-zsh

    sh -c "$(proxychains curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  4. 下载zsh-syntax-highlighting 语法高亮插件

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting

  5. 下载 zsh-autosuggestions 自动提示插件

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions

  6. 配置.zshrc文件

    vim .zshrc
    ZSH_THEME="ys"
    plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
    source .zshrc

文章作者: Secgxx
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Secgxx !
  目录