# Ghostty

面向 macOS 和 Linux 的免费原生终端模拟器，支持 GPU 渲染、标签页、分屏和 Shell 集成。

> 这是 OpenNavo 上 Ghostty 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/ghostty>

- **最新版本**: `1.4.0`
- **开发者**: Mitchell Hashimoto and Ghostty contributors
- **主页**: <https://ghostty.org/>
- **分类**: [终端与 Shell](https://opennavo.com/zh/categories/terminal)
- **安装**: `brew install --cask ghostty`
- **近 30 天安装**: 26,948
- **Homebrew**: 可以安装，应用会自行更新
- **下载地址**: <https://release.files.ghostty.org/1.4.0/Ghostty.dmg>
- **SHA-256**: `3a02075dbd24318d778426af41dee5507d53ecc4578ede96912ec9ce6d18d3e8`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "quit": "com.mitchellh.ghostty"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "app": [
        "Ghostty.app"
      ],
      "target": "/Applications/Ghostty.app"
    },
    "phase": "install",
    "sources": [
      "Ghostty.app"
    ],
    "target": "/Applications/Ghostty.app",
    "type": "app"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Ghostty.app/Contents/Resources/man/man5/ghostty.5"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man5/ghostty.5"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Ghostty.app/Contents/Resources/man/man5/ghostty.5"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man5/ghostty.5",
    "type": "manpage"
  },
  {
    "declaration": {
      "manpage": [
        "$APPDIR/Ghostty.app/Contents/Resources/man/man1/ghostty.1"
      ],
      "target": "$HOMEBREW_PREFIX/share/man/man1/ghostty.1"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Ghostty.app/Contents/Resources/man/man1/ghostty.1"
    ],
    "target": "$HOMEBREW_PREFIX/share/man/man1/ghostty.1",
    "type": "manpage"
  },
  {
    "declaration": {
      "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_ghostty",
      "zsh_completion": [
        "$APPDIR/Ghostty.app/Contents/Resources/zsh/site-functions/_ghostty"
      ]
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Ghostty.app/Contents/Resources/zsh/site-functions/_ghostty"
    ],
    "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_ghostty",
    "type": "zsh_completion"
  },
  {
    "declaration": {
      "bash_completion": [
        "$APPDIR/Ghostty.app/Contents/Resources/bash-completion/completions/ghostty.bash"
      ],
      "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/ghostty"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Ghostty.app/Contents/Resources/bash-completion/completions/ghostty.bash"
    ],
    "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/ghostty",
    "type": "bash_completion"
  },
  {
    "declaration": {
      "fish_completion": [
        "$APPDIR/Ghostty.app/Contents/Resources/fish/vendor_completions.d/ghostty.fish"
      ],
      "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/ghostty.fish"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Ghostty.app/Contents/Resources/fish/vendor_completions.d/ghostty.fish"
    ],
    "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/ghostty.fish",
    "type": "fish_completion"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/.cache/ghostty",
            "~/.config/ghostty",
            "~/Library/Application Support/com.mitchellh.ghostty",
            "~/Library/Caches/com.mitchellh.ghostty",
            "~/Library/HTTPStorages/com.mitchellh.ghostty",
            "~/Library/Preferences/com.mitchellh.ghostty.plist",
            "~/Library/Saved Application State/com.mitchellh.ghostty.savedState",
            "~/Library/WebKit/com.mitchellh.ghostty"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Ghostty 是一款免费、开源的终端模拟器，面向开发者、系统管理员以及任何使用命令行工具的人。它将 GPU 加速的终端渲染与原生 macOS 界面及 Linux 上的 GTK 界面相结合。

功能
• 使用原生标签页和分屏面板整理 Shell，并通过命令面板查找操作。
• 使用可配置的字体、主题、按键绑定、超链接，并在兼容的终端应用中使用 Kitty 图形协议。
• 与受支持的 Shell 集成，以便导航提示符及处理其他终端工作流程。
• 在 macOS 上使用下拉式 Quick Terminal，以及 Quick Look、安全输入和窗口状态恢复等原生功能。

安装和使用
使用 `brew install --cask ghostty` 安装，或下载官方签名并经过公证的 DMG，然后将 Ghostty.app 拖到“应用程序”文件夹。打开 Ghostty 即可启动 Shell；终端会显示并运行你的 Shell 和命令行程序，这些程序仍有各自的安装要求。Mac 二进制文件无需安装 Zig 编译器，也无需从源代码构建 Ghostty。主题、字体和快捷键的设置请参阅官方配置文档。

要求与冲突
当前的 Homebrew cask 要求 macOS 13 Ventura 或更高版本，并注明支持 Intel 和 Apple Silicon Mac。它与 `ghostty@tip` cask 冲突；请在稳定版软件包和预发布版软件包之间选择其一，不要通过 Homebrew 同时安装两者。cask 未声明任何额外的 Homebrew 软件包依赖。这并不会免除你在终端中启动的程序自身的要求。所引用的安装文档没有说明固定的最低内存或磁盘空间要求；下载大小是安装程序的大小，并非安装后的占用空间。

平台支持
该项目为 macOS 提供官方预构建二进制文件。Linux 使用原生 GTK 应用，由发行版维护者和社区软件包分发；可用版本以及图形和库要求取决于软件包和发行版本。1.2 版本提高了 GTK 前端的最低要求，分别为 GTK 4.14、libadwaita 1.5 和 OpenGL 4.3。GTK 发行说明也提及 FreeBSD，但此 Mac cask 不会安装 BSD 或 Linux 软件包。所引用的官方安装指南未提供原生 Windows 软件包。

账户、费用与许可证
Ghostty 本身无需服务账户或订阅即可在本地使用终端。它是采用 MIT 许可证的免费软件，版权归 Mitchell Hashimoto 和 Ghostty 贡献者所有。从 Ghostty 启动的 SSH 服务器、云服务和其他工具可能需要各自的凭据，或产生各自的费用。

官方来源
https://ghostty.org/docs/about
https://ghostty.org/docs/install/binary
https://ghostty.org/docs/config
https://ghostty.org/docs/install/release-notes/1-2-0
https://github.com/ghostty-org/ghostty/blob/main/LICENSE
Homebrew 要求与冲突：当前 Ghostty cask 元数据。截图为随 Ghostty 1.2 发布的官方 macOS 示例，并非当前 1.3.1 版本的截图。

## 系统要求

- macOS 13 起 · 应用版本: 1.4.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 核查于 2026-11-24
  - <https://release.files.ghostty.org/1.4.0/Ghostty.dmg>
  - SHA-256: `3a02075dbd24318d778426af41dee5507d53ecc4578ede96912ec9ce6d18d3e8`
- macOS 13 起 · 应用版本: 1.4.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 核查于 2026-11-24
  - <https://release.files.ghostty.org/1.4.0/Ghostty.dmg>
  - SHA-256: `3a02075dbd24318d778426af41dee5507d53ecc4578ede96912ec9ce6d18d3e8`

## Ghostty 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/ghostty-org/ghostty> · 是否开源: 是 — <https://github.com/ghostty-org/ghostty> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask ghostty`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask ghostty`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/.cache/ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.config/ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.mitchellh.ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.mitchellh.ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/com.mitchellh.ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.mitchellh.ghostty.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/com.mitchellh.ghostty.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/WebKit/com.mitchellh.ghostty` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 1.4.0 (2026-10-27)

新增 Kitty 图形动画和相对放置，压缩回滚历史以降低内存占用，改进 SSH 集成并修复安全问题。

- 新增 Kitty 图形动画和相对放置，完成已发布的 Kitty 图形协议。
- 压缩回滚历史以降低内存占用。
- 支持 macOS 27，同时保留 macOS 13 支持。
- 新增 `ghostty +ssh`，用于安装远端 terminfo 并转发终端环境变量。
- 修复粘贴保护、恶意终端输出处理和 macOS 上的不安全链接。
- macOS 上的 `copy-on-select` 默认为 `none`；`scrollback-limit` 更名为 `scrollback-limit-bytes`。

https://ghostty.org/docs/install/release-notes/1-4-0

## 资料与来源

- <https://opennavo.com/zh/apps/ghostty>
- <https://opennavo.com/zh/apps/ghostty/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/ghostty.rb> · 核查于 2026-11-24
- <https://formulae.brew.sh/cask/ghostty>
- <https://github.com/ghostty-org/ghostty> · 核查于 2026-11-13
