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

WezTerm — GPU-Accelerated Terminal Emulator and Multiplexer

WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written in Rust. Configured entirely in Lua with built-in tabs, splits, SSH multiplexing, image display, and a rich set of terminal features.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
直接安装命令
npx -y tokrepo@latest install 290af8f3-3641-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

TL;DR
WezTerm is a Rust-based terminal with GPU rendering, Lua config, tabs, splits, and SSH.
§01

What it is

WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written in Rust. It is configured entirely in Lua, providing programmable control over appearance, keybindings, and behavior. Built-in features include tabs, splits, SSH multiplexing, image display (iTerm2 and Kitty protocols), ligature support, and a rich set of escape sequences.

This tool is for developers and power users who want a fast, highly configurable terminal that replaces both a terminal emulator and a multiplexer like tmux.

§02

How it saves time or tokens

WezTerm combines the terminal emulator and multiplexer into one application, eliminating the need to run tmux or screen inside another terminal. Lua configuration allows dynamic behavior: change themes based on time of day, adjust fonts per SSH host, or create custom status bars. GPU acceleration means scrolling through large log files stays smooth.

§03

How to use

  1. Download WezTerm for your platform.
  2. Create a ~/.wezterm.lua configuration file.
  3. Customize keybindings, appearance, and behavior in Lua.
  4. Use built-in multiplexer features instead of tmux.
# Install on macOS
brew install --cask wezterm

# Install on Linux
flatpak install flathub org.wezfurlong.wezterm
§04

Example

A ~/.wezterm.lua configuration:

local wezterm = require 'wezterm'
local config = wezterm.config_builder()

-- Appearance
config.color_scheme = 'Catppuccin Mocha'
config.font = wezterm.font('JetBrains Mono', { weight = 'Medium' })
config.font_size = 14.0
config.window_background_opacity = 0.95

-- Tab bar
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true

-- Key bindings for splits
config.keys = {
  { key = 'd', mods = 'CMD', action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' } },
  { key = 'd', mods = 'CMD|SHIFT', action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' } },
}

return config
§05

Related on TokRepo

§06

Common pitfalls

  • Lua configuration has a learning curve if you are used to TOML or YAML config files. The flexibility comes at the cost of verbosity.
  • GPU acceleration requires compatible graphics drivers. Some older systems or VM environments may fall back to software rendering.
  • WezTerm's built-in multiplexer is not a drop-in replacement for tmux. Session persistence across reboots requires WezTerm's mux server.
  • Image display protocols vary. Not all terminal applications support the same image protocols that WezTerm implements.
  • WezTerm's binary size is larger than minimal terminals like Alacritty due to the built-in multiplexer and Lua runtime.
  • Review the official documentation before deploying to production to ensure compatibility with your specific environment and requirements.

常见问题

How is WezTerm different from Alacritty?+

Both are GPU-accelerated terminals written in Rust. WezTerm includes a built-in multiplexer (tabs, splits, sessions), Lua scripting, image display, and ligature support. Alacritty is minimal and relies on tmux for multiplexing.

Can WezTerm replace tmux?+

For many workflows, yes. WezTerm has built-in tabs, splits, and session management. However, tmux offers features like session sharing between terminals and more mature session persistence. Some users run both.

Does WezTerm support ligatures?+

Yes. WezTerm supports font ligatures out of the box. Fonts like Fira Code and JetBrains Mono render their ligatures correctly without additional configuration.

Can I display images in WezTerm?+

Yes. WezTerm supports the iTerm2 and Kitty image protocols. Tools like imgcat and timg can display images inline in the terminal.

Is WezTerm cross-platform?+

Yes. WezTerm runs on macOS, Linux, Windows, and FreeBSD. The same Lua configuration file works across all platforms with minor adjustments for OS-specific paths.

引用来源 (3)

讨论

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

相关资产