---
title: "Solve the problem of oh-my-zsh plugin 'zsh-autosuggestions' not found and plugin 'zsh-syntax-highlighting' not found"
url: https://blog.bktus.com/en/archives/qvsol9/
author: "Saturneric"
date: 2021-05-25
language: en-US
categories: ["Practice"]
tags: ["Tutorial","zsh","AI-Assisted"]
translation_zh: https://blog.bktus.com/archives/9s3ea1/
---

# Solve the problem of oh-my-zsh plugin 'zsh-autosuggestions' not found and plugin 'zsh-syntax-highlighting' not found

When we install the zsh plugins zsh-autosuggestions or zsh-syntax-highlighting, we usually run into the oh-my-zsh error “plugin 'xxx' not found”. So let's look at why oh-my-zsh reports “plugin 'zsh-autosuggestions' not found” and “plugin 'zsh-syntax-highlighting' not found”, and how to fix it. The cause is that the plugin's code repository was never cloned to your local machine, so the plugin you want isn't actually installed. The fix is really simple. Just run the following commands:

```
$ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
$ source ~/.zshrc
```

Then reopen your shell and you'll see the problem is gone. You can use the same method to fix this kind of problem with other plugins too.
