# Ghostty

藏青底的终端：十六色、暖白的字、黄色的光标和选区。一个主题文件，配置里加一行。

- id: `ghostty`
- 运行在: macOS, Linux
- 安装: 一条命令
- 终端和命令行

## 安装

```sh
npx github:pseudoyu/poi-theme install ghostty
```

## 它会改什么

- `~/.config/ghostty/themes/`: 新增 3 个文件
- `~/.config/ghostty/config`: 一行：theme = poi-machine

## 然后

- 重新载入 Ghostty 的配置：macOS 按 ⌘ ⇧ ,，Linux 按 Ctrl ⇧ ,。

## 撤销

```sh
npx github:pseudoyu/poi-theme uninstall ghostty
```

把装进去的东西原样取出：新文件删掉，加的行和段拿掉，装之前就有的文件按 .pre-poi 备份还原。

## 需要知道的

- 你自己在配置里写的颜色优先于主题。
- 用终端自己 16 色画的工具不需要单独的端：bat、delta、lazygit 都会跟着变。
- Machine 另带两份：poi-machine-data（橄榄底，看表格）和 poi-machine-log（绿底，看日志），用 ghostty --theme=poi-machine-data 开。

## 在哪里检查过

- macOS (macOS 27): 同样的文件每天在用
- Linux (Arch Linux, KDE Plasma 6): 同样的文件每天在用

## 文件

- https://poi.pseudoyu.com/files/ghostty/machine/poi-machine
- https://poi.pseudoyu.com/files/ghostty/machine/poi-machine-data
- https://poi.pseudoyu.com/files/ghostty/machine/poi-machine-log
- https://poi.pseudoyu.com/files/ghostty/machine/glow.glsl
