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

Zellij — Terminal Workspace with Batteries Included

Zellij is a terminal workspace (multiplexer) with batteries included. Written in Rust with sane defaults, discoverable keybindings, a layout system, floating panes, session management, and a WebAssembly plugin system. The modern alternative to tmux.

Agent 就绪

Agent 可直接安装

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

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

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

TL;DR
Zellij is a Rust terminal multiplexer with discoverable keybindings, layouts, floating panes, sessions, and a WebAssembly plugin system.
§01

What it is

Zellij is a terminal multiplexer written in Rust that provides sane defaults, discoverable keybindings, a layout system, floating panes, session management, and a WebAssembly plugin system. Unlike tmux, Zellij shows available keybindings at the bottom of the screen, making it immediately usable without memorizing shortcuts.

Developers, DevOps engineers, and terminal power users who want a modern multiplexer that works out of the box without a .tmux.conf file use Zellij. The WebAssembly plugin system enables community extensions without recompiling.

§02

How it saves time or tokens

Zellij eliminates the steep learning curve of tmux. New users are productive in minutes thanks to visible keybinding hints. The layout system lets you define terminal arrangements in KDL files and load them with one command, replacing manual pane splitting. Session persistence means you never lose your terminal layout on disconnection.

§03

How to use

  1. Install Zellij:
brew install zellij                         # macOS
cargo install --locked zellij               # Rust
  1. Launch a session:
zellij
  1. Use the keybinding hints at the bottom. Press Ctrl+p for pane mode, Ctrl+t for tab mode, Ctrl+n for resize mode.
§04

Example

// layout.kdl - Define a development workspace
layout {
    pane split_direction="vertical" {
        pane command="nvim" {
            args "."
        }
        pane split_direction="horizontal" {
            pane command="cargo" {
                args "watch" "-x" "test"
            }
            pane  // empty shell
        }
    }
}
# Load the layout
zellij --layout layout.kdl
§05

Related on TokRepo

§06

Common pitfalls

  • Zellij keybindings conflict with some terminal emulators or applications that also use Ctrl+p or Ctrl+t. Use zellij setup --check to detect conflicts and remap keys.
  • Nested multiplexers (running Zellij inside tmux or vice versa) cause keybinding confusion. Pick one multiplexer per session.
  • WebAssembly plugins are still a young ecosystem. The plugin API changes between versions, so pin your Zellij version when using third-party plugins.

常见问题

How does Zellij compare to tmux?+

Zellij provides discoverable keybindings (shown at screen bottom), built-in floating panes, and a WebAssembly plugin system. tmux is more mature with a larger plugin ecosystem via TPM. Zellij is easier to learn; tmux offers more customization depth.

Does Zellij support session persistence?+

Yes. Zellij sessions persist in the background when you detach. Use 'zellij attach' to reconnect to a named session. Sessions survive terminal closure but not system reboots (unlike tmux-resurrect which saves layout to disk).

Can I use Zellij with Neovim?+

Yes. Zellij works with any terminal application including Neovim. The keybinding modes help avoid conflicts since Zellij only intercepts keys when you are in a specific mode (pane, tab, resize) rather than always capturing key combinations.

What is the Zellij plugin system?+

Zellij plugins are WebAssembly modules that run inside the multiplexer. Plugins can add status bar widgets, custom pane behaviors, and automation. The plugin API provides access to pane content, events, and Zellij commands. Plugins are sandboxed by the WASM runtime.

Does Zellij work over SSH?+

Yes. Zellij works over SSH just like tmux. Start a Zellij session on the remote machine, and it persists when your SSH connection drops. Reconnect with 'zellij attach' after re-establishing the SSH session.

引用来源 (3)

讨论

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

相关资产