zsh插件


Zsh命令自动补全插件 zsh-autosuggestions

  • 1、安装命令

  • github的gitee的两个挑一个

    git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
    
    git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    
  • 2、配置

    • 1、打开文件
vim ~/.zshrc
    • 2、在~/.zshrc文件中找到plugins数组,加入zsh-autosuggestions

Zsh命令语法高亮插件 zsh-syntax-highlighting

  • 1、命令
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    
  • 2、配置
    • 1、打开文件
      vim ~/.zshrc
      
    • 2、在~/.zshrc文件中找到plugins数组,在 zsh-autosuggestions 后面加入zsh-syntax-highlighting(必须是后面)

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