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

Alacritty — Cross-Platform GPU-Accelerated Terminal Emulator

Alacritty is a cross-platform, GPU-accelerated terminal emulator written in Rust. Focuses on simplicity and performance — no tabs, no splits, just the fastest terminal rendering on the planet. Configuration via TOML file, works on macOS, Linux, Windows, and BSD.

AI
AI Open Source · Community
快速使用

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

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

# Install
brew install --cask alacritty              # macOS
sudo snap install alacritty --classic      # Linux
scoop install alacritty                    # Windows
cargo install alacritty                    # From source

Config ~/.config/alacritty/alacritty.toml:

[font]
size = 14.0

[font.normal]
family = "JetBrainsMono Nerd Font"
style = "Regular"

[window]
decorations = "Buttonless"
opacity = 0.95
padding = { x = 8, y = 8 }

[colors.primary]
background = "#1e1e2e"
foreground = "#cdd6f4"

[terminal.shell]
program = "/bin/zsh"
args = ["-l"]
介绍

Alacritty is the fastest terminal emulator in existence. Written in Rust, it uses OpenGL (and now WebGPU-capable via crossfont/glutin) for GPU-accelerated text rendering. Alacritty intentionally has no tabs or splits — it expects you to pair it with tmux or a tiling window manager. Focus on doing one thing well: rendering terminal output as fast as possible.

What Alacritty Does

  • GPU rendering — OpenGL/Metal for text rendering
  • Cross-platform — macOS, Linux, Windows, FreeBSD
  • TOML config — everything via alacritty.toml
  • Vi mode — navigate and select text in terminal
  • Search — incremental regex search
  • Hints — clickable URLs and custom patterns
  • Live config reload — edit config, terminal updates instantly
  • Scrollback — configurable buffer size
  • True color — 24-bit color support
  • Unicode — full Unicode and emoji rendering

Architecture

Rust binary using glutin/winit for windowing and crossfont for font rasterization. Rendering pipeline: parse ANSI escape codes → update grid state → render via OpenGL. Zero-copy where possible for maximum throughput.

Self-Hosting

Terminal application — install and run.

Key Features

  • Fastest text rendering
  • GPU-accelerated
  • TOML configuration
  • Vi mode navigation
  • Live config reload
  • True color and font ligatures
  • Regex search
  • URL hints
  • Cross-platform
  • Minimal by design

Comparison

Terminal GPU Tabs Config Language
Alacritty OpenGL No TOML Rust
Ghostty Metal/OpenGL Yes INI-like Zig
Kitty OpenGL Yes kitty.conf C+Python
WezTerm OpenGL Yes Lua Rust
iTerm2 Metal Yes GUI ObjC

常见问题 FAQ

Q: 没有 tab 怎么办? A: 配合 tmux 或 Zellij 用。Alacritty 哲学是做最好的终端渲染器,窗口管理交给专业工具。

Q: 字体模糊? A: macOS 上确保 Retina 正确识别。设置 [env] TERM = "xterm-256color" 和合适的 font size。

Q: 和 Ghostty 比? A: Ghostty 更「batteries included」(原生 tab、split、平台 UI);Alacritty 更极简、更快、更成熟。

来源与致谢 Sources

讨论

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

相关资产