[oh-my-zsh] plugin 'zsh-autosuggestions' not found

10 min read

If you receive the error message "plugin 'zsh-autosuggestions' not found" when using oh-my-zsh, it means that the zsh-autosuggestions plugin is not installed or enabled. Here's how you can install and enable it:

  1. Clone the plugin repository: Open a terminal and navigate to the oh-my-zsh custom directory:
cd ~/.oh-my-zsh/custom/plugins

Clone the zsh-autosuggestions repository:

git clone https://github.com/zsh-users/zsh-autosuggestions.git
  1. Enable the plugin: Open your .zshrc file using a text editor:
nano ~/.zshrc

Find the line that starts with plugins= and make sure it includes zsh-autosuggestions:

plugins=(zsh-autosuggestions ... other plugins)

Save and exit the file.

  1. Source the updated .zshrc file:
source ~/.zshrc

The zsh-autosuggestions plugin should now be enabled and ready to use.

If you followed these steps and still encounter the error, make sure you restart your terminal for the changes to take effect.