zsh命令自动补全插件 zsh-autosuggestions Mac安装和配置

2022/9/1 zsh-plugins

本文介绍zsh-autosuggestions的自动补全插件在Mac上的安装和配置

# 仓库地址 (opens new window)

# 安装

  • 克隆插件到$ZSH_CUSTOM/plugins (默认位置~/.oh-my-zsh/custom/plugins
  git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
1

# 配置

  • 将clone的插件名添加到 .zshrc
    • vim ~/.zshrc
      plugins=(
        zsh-autosuggestions
      )
    
    1
    2
    3
  • 保存关闭
  • 执行 source ~/.zshrc 使配置生效
最后更新时间: 2022/12/2 16:08:26