Skills2026年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.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 66/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
先审查命令
npx -y tokrepo@latest install c457c64e-3638-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

TL;DR
Ghostty combines native OS UI with GPU-accelerated rendering for a fast, feature-rich terminal experience.
§01

What it is

Ghostty is a cross-platform terminal emulator written in Zig by Mitchell Hashimoto, co-founder of HashiCorp. It uses platform-native UI elements (AppKit on macOS, GTK on Linux) combined with GPU-accelerated text rendering. Unlike Alacritty which strips features for speed, Ghostty aims to be both fast and feature-rich, with native tabs, splits, and OS integration.

Ghostty targets developers who want terminal rendering speed comparable to Alacritty but with built-in window management features and native OS integration.

§02

How it saves time or tokens

Ghostty eliminates the need for tmux or a tiling window manager for basic multi-pane workflows. Native tabs and splits work with OS keyboard shortcuts. GPU rendering keeps output smooth during heavy builds or log tailing. The native UI means system features like notifications, clipboard, and font rendering work correctly without configuration.

§03

How to use

  1. Install Ghostty:
brew install --cask ghostty    # macOS
  1. Configure via the config file:
# ~/.config/ghostty/config
font-family = JetBrains Mono
font-size = 14
theme = catppuccin-mocha
window-padding-x = 8
window-padding-y = 8
cursor-style = bar
  1. Use built-in splits and tabs:
Cmd+D          # Split right
Cmd+Shift+D    # Split down
Cmd+T          # New tab
Cmd+W          # Close pane
§04

Example

A complete Ghostty configuration:

# ~/.config/ghostty/config
font-family = Fira Code
font-size = 13
font-feature = calt
font-feature = liga

theme = tokyo-night
background-opacity = 0.95

window-padding-x = 10
window-padding-y = 10
window-decoration = true

cursor-style = bar
cursor-style-blink = true

shell-integration = zsh
confirm-close-surface = false
§05

Related on TokRepo

§06

Common pitfalls

  • Ghostty is relatively new and may have fewer themes and plugins than established terminals like iTerm2 or Kitty. Check the theme gallery before switching.
  • Linux support requires GTK4 and specific graphics drivers. Some distributions may need manual dependency installation.
  • Font ligature support exists but requires explicit font-feature configuration in the config file.

常见问题

How is Ghostty different from Alacritty?+

Alacritty is minimalist with no tabs or splits, relying on tmux. Ghostty includes native tabs, splits, and OS integration while maintaining comparable GPU rendering speed. Ghostty is written in Zig; Alacritty in Rust.

Does Ghostty support font ligatures?+

Yes. Enable ligatures with font-feature = calt and font-feature = liga in the config file. Use a ligature-supporting font like Fira Code or JetBrains Mono.

Is Ghostty free?+

Yes. Ghostty is open source. The source code is available on GitHub under a permissive license.

Which platforms does Ghostty support?+

Ghostty runs on macOS and Linux. Windows support is planned but not yet available. macOS uses native AppKit; Linux uses GTK4.

Can I migrate from iTerm2?+

Yes. Ghostty supports most features iTerm2 users expect: tabs, splits, profiles, and shell integration. The configuration syntax differs but covers similar options. Some advanced iTerm2 features like triggers and profiles may not have direct equivalents.

引用来源 (3)

讨论

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

相关资产