Scripts2026年4月12日·1 分钟阅读

Ghostty — Fast Feature-Rich Cross-Platform Terminal Emulator

Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration. Written in Zig by Mitchell Hashimoto (co-founder of HashiCorp). Combines native OS feel with terminal power user features.

SC
Script Depot · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

# macOS (Homebrew cask)
brew install --cask ghostty

# Or build from source (requires Zig + system deps)
git clone https://github.com/ghostty-org/ghostty
cd ghostty
zig build -Doptimize=ReleaseFast

Config ~/.config/ghostty/config:

font-family = JetBrainsMono Nerd Font
font-size = 14
theme = catppuccin-mocha
window-decoration = false
background-opacity = 0.95
cursor-style = bar
shell-integration = zsh
介绍

Ghostty is a fast, feature-rich, and cross-platform terminal emulator created by Mitchell Hashimoto (co-founder of HashiCorp, creator of Vagrant, Terraform, Consul, Nomad). Written in Zig, Ghostty uses platform-native UI (AppKit on macOS, GTK on Linux) combined with GPU-accelerated rendering for the best of both worlds: native OS feel with power-user terminal features.

What Ghostty Does

  • Platform-native UI — macOS AppKit, Linux GTK4
  • GPU rendering — Metal (macOS), OpenGL (Linux)
  • Tabs and splits — built-in, no tmux needed
  • Shell integration — prompt marking, working directory tracking
  • Themes — 300+ built-in themes
  • Ligatures — font ligature support
  • Image protocol — Kitty graphics protocol
  • Quick terminal — hotkey dropdown terminal
  • True color — 24-bit
  • Fast — competitive with Alacritty

Architecture

Zig + platform native frameworks. On macOS: AppKit for window management, Metal for text rendering. On Linux: GTK4 for window management, OpenGL for rendering. Terminal state machine implemented in Zig for correctness and performance.

Self-Hosting

Terminal application.

Key Features

  • Platform-native window chrome
  • GPU-accelerated rendering
  • Built-in tabs and splits
  • Shell integration
  • 300+ themes
  • Image support (Kitty protocol)
  • Quick terminal (hotkey)
  • Font ligatures
  • True color
  • Actively developed by Mitchell Hashimoto

Comparison

Terminal Native UI Tabs Image Language
Ghostty Yes Yes Kitty protocol Zig
Alacritty No No No Rust
Kitty Partial Yes Own protocol C+Python
WezTerm No Yes Multiple Rust
iTerm2 Yes Yes Own protocol ObjC

常见问题 FAQ

Q: 和 Alacritty 比? A: Ghostty 有原生平台 UI、内置 tab/split、shell integration;Alacritty 更极简更成熟。Ghostty 更适合不想用 tmux 的用户。

Q: Linux 支持? A: 支持。GTK4 后端。需要自行编译。

Q: 稳定吗? A: 2024 年底才公开源码,但 Mitchell 已经独立开发超过 2 年。核心功能稳定,边缘功能仍在迭代。

来源与致谢 Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产