> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# mac终端改造


AI SummaryAI Generated

`oh-my-zsh` 加一堆插件很好用，但每次打开终端都要等几秒，于是这次改造的目标很明确：保留体验，砍掉启动负担。
| 工具       | 接替的环节   |
| -------- | ------- |
| Starship | 更轻量的提示符 |
| Yazi     | 终端文件管理  |
| Ghostty  | 新的终端模拟器 |
| chezmoi  | 多机配置同步  |
配合 Nerd Font 后，一套更轻、更快且仍然好看的终端环境就完成了。

## 前言

之前我一直在用 oh-my-zsh + 各种插件（比如自动补全、语法高亮等），虽然功能很丰富，但有一个很明显的问题：**每次打开终端都会卡顿几秒**。

尤其是插件一多之后，启动速度肉眼可见变慢，日常使用体验很差。于是我决定做一次终端“瘦身 + 美化”，换一套更轻量但同样好看的方案。

## 安装

### [1. Starship（高颜值 Prompt）](https://github.com/starship/starship)

配置使用的是 [.config/starship.toml](https://gist.githubusercontent.com/zhangchitc/62f5dca64c599084f936fda9963f1100/raw/35f26f947341f1fb1cf077a32dabd6ddb0d67b2b/starship.toml)

```shell
brew install starship
chmod -R go-w ~/.zshrc
```

:::tip 安装 Nerd Font 字体（图标支持）

```shell
brew install font-jetbrains-mono-nerd-font
```

:::

安装后记得在终端中设置字体为 `JetBrainsMono Nerd Font`

![](https://img.tteam.icu/i/2026/04/05/af4cc550.webp)

### [Yazi（终端文件管理器）](https://github.com/sxyazi/yazi)

```shell
brew install yazi
```

### [Ghostty（现代终端）](https://github.com/ghostty-org/ghostty)

```shell
brew install --cask ghostty
```

### [chezmoi（配置管理）](https://github.com/twpayne/chezmoi)

```shell
brew install chezmoi
```

## 总结

这一套终端改造包含：

- Starship：美观强大的提示符
- Nerd Font：图标支持
- Yazi：高效文件管理
- Ghostty：现代终端体验
- chezmoi：配置管理

![](https://img.tteam.icu/i/2026/04/05/0c33f7a7.webp)

搞完之后，你的终端会变得又快又好看
