---
title: "Linux安装oh-my-zsh"
canonical_url: "https://yangqiuyi.com/blog/linux/linux-an-zhuang-oh-my-zsh"
---

> Index of every page on this site: [llms.txt](https://yangqiuyi.com/llms.txt)

## 安装

```sh
sudo apt install zsh
git clone https://gitee.com/mirrors/oh-my-zsh.git
cd oh-my-zsh
sh ./tools/install.sh
```

## 下载插件

```sh
git clone https://gitee.com/qiushaocloud/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://gitee.com/lightnear/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
```

然后再编辑`~/.zshrc`的plugins：

```sh
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
```

保存更改之后在终端里输入

```sh
zsh
```

来更新配置

## Sitemap

See the full [sitemap](https://yangqiuyi.com/sitemap.md) for all pages.
